MediaTrack
public protocol MediaTrack : Track
A MediaTrack is an element that represents a single video or audio track that can be played by the player.
-
Indicates whether the track is enabled.
Remark
Options are:- true: The track will be enabled. If another track was currently enabled, that track will be disabled and the player will switch to this track.
- false: The track will be disabled. Given that only one track can be active, this means no audio/video will be played.
Declaration
Swift
var enabled: Bool { get set } -
The active quality of the media track, i.e. the quality that is currently being played.
Declaration
Swift
var activeQuality: Quality? { get } -
The qualities of the media track.
Declaration
Swift
var qualities: QualityList { get } -
One or more desired qualities of the media track.
Remark
- Only supported for THEOlive.
- If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.
Declaration
Swift
var targetQualities: [Quality]? { get set }