TextTrack
public protocol TextTrack : TrackA TextTrack object is an element that represents a single text track that can be displayed in the player.
- 
                  
                  The text track in-band metadata track dispatch type of the text track that the TextTrack object represents. DeclarationSwift var inBandMetadataTrackDispatchType: String { get }
- 
                  
                  The text track mode. Remark - For all possibilities, see: TextTrackMode.
 DeclarationSwift var mode: TextTrackMode { get set }
- For all possibilities, see: 
- 
                  
                  The text track’s list of TextTrackCue objects as a TextTrackCueList. This list includes all of the text track’s known cues. DeclarationSwift var cues: [TextTrackCue] { get }
- 
                  
                  The text track’s resource path DeclarationSwift var src: String { get }
- 
                  
                  The text track’s list of active TextTrackCue objects as a TextTrackCueList. Remark This list dynamically updates as time progresses so that it includes all cues that are currently active. Currently active cues are ones that start before the current playback position and end after it.DeclarationSwift var activeCues: [TextTrackCue] { get }
- 
                  
                  The content type of the given track. Remark - webvtt: The track contains WebVTT (Web Video Text Tracks) content.
 DeclarationSwift var type: String { get }
- 
                  
                  Adds the given event listener of the given TextTrackEventType. 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 : EventProtocolParameterstypeTextTrackEventType 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 TextTrackEventType. DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeTextTrackEventType of the removed event listener. listenerEventListener object that has been return on addEventListener. 
 TextTrack Protocol Reference
      TextTrack Protocol Reference