AudioTrackList_Objc
@objc(THEOplayerAudioTrackList)
public protocol AudioTrackList_Objc : MediaTrackList_Objc
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
@discardableResult func addEventListener(type: String, listener: @escaping (TrackEventProtocol_Objc) -> ()) -> EventListenerParameters
typeAudioTrackListEventType of the added event listener.
listenerClosure 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(type: String, listener: EventListener)Parameters
typeAudioTrackListEventType of the removed event listener.
listenerEventListener object that has been return on addEventListener.
AudioTrackList_Objc Protocol Reference