summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/feed/MP4Chapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/feed/MP4Chapter.java')
-rw-r--r--src/de/danoeh/antennapod/feed/MP4Chapter.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/feed/MP4Chapter.java b/src/de/danoeh/antennapod/feed/MP4Chapter.java
new file mode 100644
index 000000000..a5e1df393
--- /dev/null
+++ b/src/de/danoeh/antennapod/feed/MP4Chapter.java
@@ -0,0 +1,27 @@
+package de.danoeh.antennapod.feed;
+
+import wseemann.media.FFmpegChapter;
+
+/**
+ * Represents a chapter contained in a MP4 file.
+ */
+public class MP4Chapter extends Chapter {
+ public static final int CHAPTERTYPE_MP4CHAPTER = 4;
+
+ /**
+ * Construct a MP4Chapter from an FFmpegChapter.
+ */
+ public MP4Chapter(FFmpegChapter ch) {
+ this.start = ch.getStart();
+ this.title = ch.getTitle();
+ }
+
+ public MP4Chapter(long start, String title, FeedItem item, String link) {
+ super(start, title, item, link);
+ }
+
+ @Override
+ public int getChapterType() {
+ return CHAPTERTYPE_MP4CHAPTER;
+ }
+}