Stay organized with collections Save and categorize content based on your preferences.

ChapterFrame

@UnstableApi
public final class ChapterFrame extends Id3Frame


Chapter information ID3 frame.

Summary

Constants

static final Parcelable.Creator<ChapterFrame>
static final String
ID = "CHAP"

Public fields

final String
final long

The byte offset of the end of the chapter, or POSITION_UNSET if not set.

final int
final long

The byte offset of the start of the chapter, or POSITION_UNSET if not set.

final int

Public constructors

ChapterFrame(
    String chapterId,
    int startTimeMs,
    int endTimeMs,
    long startOffset,
    long endOffset,
    Id3Frame[] subFrames
)

Public methods

int
boolean
Id3Frame
getSubFrame(int index)

Returns the sub-frame at index.

int

Returns the number of sub-frames.

int
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited fields

From androidx.media3.extractor.metadata.id3.Id3Frame
final String

The frame ID.

Inherited methods

From androidx.media3.extractor.metadata.id3.Id3Frame
From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

void

Updates the MediaMetadata.Builder with the type specific values stored in this Entry.

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<ChapterFrameCREATOR

ID

public static final String ID = "CHAP"

Public fields

chapterId

public final String chapterId

endOffset

public final long endOffset

The byte offset of the end of the chapter, or POSITION_UNSET if not set.

endTimeMs

public final int endTimeMs

startOffset

public final long startOffset

The byte offset of the start of the chapter, or POSITION_UNSET if not set.

startTimeMs

public final int startTimeMs

Public constructors

ChapterFrame

public ChapterFrame(
    String chapterId,
    int startTimeMs,
    int endTimeMs,
    long startOffset,
    long endOffset,
    Id3Frame[] subFrames
)

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

getSubFrame

public Id3Frame getSubFrame(int index)

Returns the sub-frame at index.

getSubFrameCount

public int getSubFrameCount()

Returns the number of sub-frames.

hashCode

public int hashCode()

writeToParcel

public void writeToParcel(Parcel dest, int flags)