MediaTrackControllable

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
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

Activates an Elementary track matching the passed TrackVariantInfo option