@UnstableApi
class ChapterFrame : Id3Frame


Chapter information ID3 frame.

Summary

Constants

const String!
ID = "CHAP"

Public constructors

ChapterFrame(
    chapterId: String!,
    startTimeMs: Int,
    endTimeMs: Int,
    startOffset: Long,
    endOffset: Long,
    subFrames: Array<Id3Frame!>!
)

Public functions

Boolean
equals(obj: Any?)
Id3Frame!
getSubFrame(index: Int)

Returns the sub-frame at index.

Int

Returns the number of sub-frames.

Int

Public properties

String!
Long

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

Int
Long

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

Int

Inherited functions

From androidx.media3.extractor.metadata.id3.Id3Frame
From androidx.media3.common.Metadata.Entry
ByteArray<Byte>?

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

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.

Unit

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

Inherited properties

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

The frame ID.

Constants

ID

const val ID = "CHAP": String!

Public constructors

ChapterFrame

ChapterFrame(
    chapterId: String!,
    startTimeMs: Int,
    endTimeMs: Int,
    startOffset: Long,
    endOffset: Long,
    subFrames: Array<Id3Frame!>!
)

Public functions

equals

fun equals(obj: Any?): Boolean

getSubFrame

fun getSubFrame(index: Int): Id3Frame!

Returns the sub-frame at index.

getSubFrameCount

fun getSubFrameCount(): Int

Returns the number of sub-frames.

hashCode

fun hashCode(): Int

Public properties

chapterId

val chapterIdString!

endOffset

val endOffsetLong

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

endTimeMs

val endTimeMsInt

startOffset

val startOffsetLong

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

startTimeMs

val startTimeMsInt