Package-level declarations

Types

Link copied to clipboard
data class AudioLanguageInfo(val languageCode: String, val roles: List<AudioTrackRole>? = null, val mimeType: String? = null)

Represents audio language information including language code, roles, and mime type.

Link copied to clipboard

Represents different roles that an audio track can have. Maps to ExoPlayer's role flags for consistency with accessibility standards.

Link copied to clipboard
Link copied to clipboard
typealias ContentURLOverrideAction = suspend (rawPlayer: Any, contentURL: String, params: Map<String, Any>?) -> String
Link copied to clipboard
data class CustomPlaybackSessionContext(val contentURLOverrideAction: ContentURLOverrideAction, val contextData: Map<String, Any>? = null)
Link copied to clipboard

Interface for selecting preferred audio and subtitle languages for media playback. When specifying a language, this should be a valid IETF BCP 47 language code. Note that language code tag can also be specified as an ISO 639-2/3 (three-letter codes). BCP 47 is the IETF's Best Current Practices for language tags, defined in RFC 5646, and it incorporates ISO 639 codes as primary language subtag. The authoritative source for valid BCP 47 subtag, including those derived from ISO 639, is the IANA Language Subtag Registry. This registry ensures a single, unambiguous subtag for each language, resolving potential conflicts or ambiguities that might arise from different ISO 639 parts.

Link copied to clipboard

A suspend-free action invoked synchronously inside the recovery coroutine, immediately before the adapter resets its media source during live recovery. Intended for analytics providers (e.g. NPAW) to set flags that suppress spurious stop events that may be triggered by that recovery reset.

Link copied to clipboard

Represents Player protocol to support playback with sequential list of playable media content a.k.a playlist.

Link copied to clipboard
data class MediaPlaylistItem(val baseConfiguration: MediaPlaylistItem.BaseConfiguration, val drmConfiguration: MediaPlaylistItem.DRMConfiguration? = null, val adsConfiguration: MediaPlaylistItem.AdsConfiguration? = null, val downloadConfiguration: MediaPlaylistItem.DownloadConfiguration? = null, val advancedConfiguration: MediaPlaylistItem.AdvancedConfiguration? = null)

Represents a single item of playable media content within a playlist.

Link copied to clipboard
data class MediaPlaylistItemTransitionInfo(val mediaPlaylistItem: MediaPlaylistItem, val transitionTrigger: Int)

Represents MediaPlaylistItem transition payload.

Link copied to clipboard

Interface for controlling and querying media tracks, specifically focusing on track variants and language selection.

Link copied to clipboard

Handler interface that enforces the policies related to the content with ads, and promos where special handling is required for seeking, timeline adjustment, interrupt handling etc.

Link copied to clipboard

A Player interface defining traditional high-level functionality such as play, pause, seek etc, and properties of currently playing media content.

Link copied to clipboard

A generic adapter interface that any RAW player must adapt to, for seamless working with Player and it's internal state-machines.

Link copied to clipboard

Information about the library such as version and name.

Link copied to clipboard
data class PlaylistPreloadConfiguration(val preloadingDurationMs: Long = DEFAULT_PRELOAD_DURATION_MS, val currentPlayingIndex: Int = DEFAULT_INDEX)

Represents configuration for MediaPlaylistItem preloading.

Properties

Link copied to clipboard
const val DEFAULT_INDEX: Int

Represents default playlist index.

Link copied to clipboard
Link copied to clipboard

Represents default preload duration in milliseconds.

Link copied to clipboard
const val DEFAULT_RANDOM_SEED: Long = 1234567890
Link copied to clipboard
const val INDEX_UNSET: Int

Represents an unset or unknown index.

Link copied to clipboard
const val MAX_AUDIO_VOLUME: Float = 1.0f
Link copied to clipboard
const val MIN_AUDIO_VOLUME: Float = 0.0f
Link copied to clipboard
const val TIME_UNSET: Long

Represents an unset or unknown time or duration.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val TRANSITION_TRIGGER_AUTO: Int = 101
Link copied to clipboard
Link copied to clipboard
const val TRANSITION_TRIGGER_SEEK: Int = 102