AudioTrackList

public protocol AudioTrackList : MediaTrackList

An AudioTrackList lists all available AudioTrack objects that the player can play.

  • Adds the given event listener of the given AudioTrackListEventType.

    Remark

    When attaching a listener on the wrong object the application will crash.

    Declaration

    Swift

    func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocol

    Parameters

    type

    AudioTrackListEventType of the added event listener.

    listener

    Closure called when event is dispatched.

    Return Value

    EventListener that can be removed.

  • Removes the given event listener of the given AudioTrackListEventType.

    Declaration

    Swift

    func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocol

    Parameters

    type

    AudioTrackListEventType of the removed event listener.

    listener

    EventListener object that has been return on addEventListener.