MediaTrack_Objc

@objc(THEOplayerMediaTrack)
public protocol MediaTrack_Objc : Track_Objc

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 }