TextTrackCue
public protocol TextTrackCue : EventDispatcherProtocolA TextTrackCue object represents an individual cue and provides methods and properties to access the data and events to act on changes to cue state. Depending on the TextTrack’s type, a cue might have different properties.
- 
                  
                  The cue’s content. Remark - The type depends of the cue type.
 DeclarationSwift var content: Any? { get }
- 
                  
                  If the cue’s type is WebVtt, the contentString is used. It contains the text track cue text in raw unparsed form. DeclarationSwift var contentString: String? { get }
- 
                  
                  If the cue’s type is WebVtt, the contentDictionary is used. It contains the text track cue info in a dictionary. DeclarationSwift var contentDictionary: [String : String]? { get }
- 
                  
                  The time in seconds and relative to a THEOplayer instance’s currentTime at which the cue becomes inactive. DeclarationSwift var endTime: Double { get }
- 
                  
                  The cue’s identifier. DeclarationSwift var id: String { get }
- 
                  
                  The cue’s unique identifier. Remark This identifier is unique across text track cues of a THEOplayer instance and can be used to distinguish between cues.This identifier is a randomly generated number. DeclarationSwift var uid: Int { get }
- 
                  
                  The time in seconds and relative to a THEOplayer instance’s currentTime at which the cue becomes active. DeclarationSwift var startTime: Double { get }
- 
                  
                  The track the given cue belongs to. DeclarationSwift var track: TextTrack? { get }
- 
                  
                  Adds the given event listener of the given TextTrackCueEventType. 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 : EventProtocolParameterstypeTextTrackCueEventType 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 TextTrackCueEventType. DeclarationSwift func removeEventListener<E>(type: EventType<E>, listener: EventListener) where E : EventProtocolParameterstypeTextTrackCueEventType of the removed event listener. listenerEventListener object that has been return on addEventListener. 
