VideoTrackList_Objc

@objc(THEOplayerVideoTrackList)
public protocol VideoTrackList_Objc : MediaTrackList_Objc

A VideoTrackList lists all available VideoTrack objects that the player can play.

  • Adds the given event listener of the given VideoTrackListEventType.

    Remark

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

    Declaration

    Swift

    @discardableResult
    func addEventListener(type: String, listener: @escaping (TrackEventProtocol_Objc) -> ()) -> EventListener

    Parameters

    type

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

    Declaration

    Swift

    func removeEventListener(type: String, listener: EventListener)

    Parameters

    type

    VideoTrackListEventType of the removed event listener.

    listener

    EventListener object that has been return on addEventListener.