AudioTrack

public protocol AudioTrack : MediaTrack

An AudioTrack object is an element that represents a single audio track that can be played by the player.

  • Indicates whether the track is enabled.

    Remark

    • true: The track will be enabled. If another track was enabled, that track will be deselected and the player will switch to this track.
    • false: AudioTrack can not be disabled. If you want to disable audio, please use the theoplayer.muted = true.

    Declaration

    Swift

    override var enabled: Bool { get set }