TextTrackList
public protocol TextTrackList : EventDispatcherProtocolA TextTrackList lists all available TextTrack objects that the player can display.
- 
                  
                  The number of text tracks in the list of text tracks. DeclarationSwift var count: Int { get }
- 
                  
                  The TextTrack object representing the text track at the index position in the player’s list of text tracks. DeclarationSwift func get(_ index: Int) -> TextTrackParametersindexPosition of the returned TextTrack. Return ValueThe TextTrack at the index position. 
- 
                  
                  Returns the TextTrack object representing the text track at the index position in the player’s list of text tracks. DeclarationSwift subscript(index: Int) -> TextTrack { get set }ParametersindexPosition of the returned TextTrack. Return ValueThe TextTrack at the index position. 
- 
                  
                  Adds the given event listener of the given TextTrackListEventType. Remark When attaching a listener on the wrong object the application will crash. DeclarationSwift func addEventListener<E>(type: EventType<E>, listener: @escaping (E) -> ()) -> EventListener where E : EventProtocolParameterstypeTextTrackListEventType of the added event listener. listenerClosure called when event is dispatched. Return ValueEventListener that can be removed. 
- 
                  
                  Removes the given event listener of the given TextTrackListEventType. DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeTextTrackListEventType of the removed event listener. listenerEventListener object that has been return on addEventListener. 
