MediaTrackControllable

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

This interface extends LanguageTrackSelector, inheriting its language selection capabilities, and adds methods for managing different variants of media tracks (e.g., different video resolutions, audio encodings). It allows for querying available track variants, setting preferred variants, and configuring bitrate thresholds for adaptive streaming.

Inheritors

Properties

Link copied to clipboard

Retrieves information about the currently active audio track.

Functions

Link copied to clipboard

Obtain the Active Track variant option for the passed TrackVariantInfo.Type, if available.

Link copied to clipboard

Returns the collection of MIME types of the Player's track variants available in TrackVariantInfo

Link copied to clipboard

Obtain the Available Track variants for passed TrackVariantInfo.Type.

Link copied to clipboard

Retrieves a list of available audio languages for the current media content.

Link copied to clipboard

Returns a list of available subtitle languages.

Link copied to clipboard
open fun setPreferredAudioLanguage(audioLanguageInfo: AudioLanguageInfo)

Sets the preferred audio language for the media player.

Link copied to clipboard
open fun setPreferredBitrateThresholds(maxBitrate: Int, minBitrate: Int)

Configures the Player's Variant Adaptation Logic with the passed maximum and minimum bitrate constraints.

Link copied to clipboard
open fun setPreferredMimeTypes(type: TrackVariantInfo.Type, preferredMimeTypes: Array<String>)

Activates an Elementary track matching the passed TrackVariantInfo option Sets the order of preference for various MIME types. Ex: aac, ec3, ac3, etc. Use MimeTypes for all possible values.

Link copied to clipboard

Configures the Player's Variant Adaptation Logic with the passed maximum bitrate constraint.

Link copied to clipboard
open fun setPreferredSubtitleLanguage(languageCode: String)

Sets the preferred language for subtitles.

Link copied to clipboard

Activates an Elementary track matching the passed TrackVariantInfo option