Package-level declarations

Types

Link copied to clipboard
data class BlockedTimeRange(val start: Long, val end: Long, val reason: String? = null, val id: String? = null) : TimeRange, Parcelable

Represents a time range that is blocked for playback. When the player reaches the start time of a blocked range, it will immediately seek to the end time, effectively skipping the blocked portion. This behavior is enforced regardless of the reason or id associated with the block.

Link copied to clipboard
data class Chapter(val id: String, val start: Long, val end: Long, val mediaMetadata: MediaMetadata) : TimeRange, Parcelable

Represents a chapter.

Link copied to clipboard
sealed interface Credit : TimeRange, Parcelable

Represents an opening or a closing credit.

Link copied to clipboard
sealed interface TimeRange

Represents a time range within a media playback timeline.

Functions

Link copied to clipboard
fun <T : TimeRange> List<T>.firstOrNullAtPosition(position: Long): T?

Returns the first TimeRange element in the list that contains the specified position.