Class ChapterFrame
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.id3.Id3Frame
-
- com.google.android.exoplayer2.metadata.id3.ChapterFrame
-
- All Implemented Interfaces:
Parcelable,Metadata.Entry
public final class ChapterFrame extends Id3Frame
Chapter information ID3 frame.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description StringchapterIdstatic Parcelable.Creator<ChapterFrame>CREATORlongendOffsetThe byte offset of the end of the chapter, orC.POSITION_UNSETif not set.intendTimeMsstatic StringIDlongstartOffsetThe byte offset of the start of the chapter, orC.POSITION_UNSETif not set.intstartTimeMs-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description ChapterFrame(String chapterId, int startTimeMs, int endTimeMs, long startOffset, long endOffset, Id3Frame[] subFrames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(Object obj)Id3FramegetSubFrame(int index)Returns the sub-frame atindex.intgetSubFrameCount()Returns the number of sub-frames.inthashCode()voidwriteToParcel(Parcel dest, int flags)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.android.exoplayer2.metadata.Metadata.Entry
getWrappedMetadataBytes, getWrappedMetadataFormat, populateMediaMetadata
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
chapterId
public final String chapterId
-
startTimeMs
public final int startTimeMs
-
endTimeMs
public final int endTimeMs
-
startOffset
public final long startOffset
The byte offset of the start of the chapter, orC.POSITION_UNSETif not set.
-
endOffset
public final long endOffset
The byte offset of the end of the chapter, orC.POSITION_UNSETif not set.
-
CREATOR
public static final Parcelable.Creator<ChapterFrame> CREATOR
-
-
Method Detail
-
getSubFrameCount
public int getSubFrameCount()
Returns the number of sub-frames.
-
getSubFrame
public Id3Frame getSubFrame(int index)
Returns the sub-frame atindex.
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable- Overrides:
describeContentsin classId3Frame
-
-