TextTrackDescription
@objc(THEOplayerTextTrackDescription)
public class TextTrackDescription : NSObject, CodableA TextTrackDescription object contains a description of a side-loaded text track that will be added to the player.
- 
                  
                  Whether the track should be enabled by default. Remark This may only be used on one track element per media element.DeclarationSwift public var isDefault: Bool?
- 
                  
                  Whether the track should be enabled by default. Remark This may only be used on one track element per media element.DeclarationSwift @objc(isDefault) public var isDefault_Objc: Bool { get set }
- 
                  
                  A TextTrackKind object specifying what kind of text track this is. DeclarationSwift public var kind: TextTrackKind?
- 
                  
                  A TextTrackKind object specifying what kind of text track this is. DeclarationSwift @objc(kind) public var kind_Objc: TextTrackKind { get set }
- 
                  
                  Specifies a source URL where the text track can be downloaded from. DeclarationSwift @objc public var src: URL
- 
                  
                  Specifies the main language of the track. DeclarationSwift @objc public var srclang: String
- 
                  
                  Specifies a label for the track which can be used to identify it. DeclarationSwift @objc public var label: String?
- 
                  
                  A TextTrackFormat object specifying what format of text track this is. DeclarationSwift public var format: TextTrackFormat?
- 
                  
                  A TextTrackFormat object specifying what format of text track this is. DeclarationSwift @objc(format) public var format_Objc: TextTrackFormat { get set }
- 
                  
                  Constructs a TextTrackDescription. DeclarationSwift public init(src: String, srclang: String, isDefault: Bool? = nil, kind: TextTrackKind? = nil, label: String? = nil, format: TextTrackFormat? = nil)ParameterssrcThe source of the text track. srclangThe language of the text track. isDefaultWhether the text track should be the default one, defaults to nil. kindThe kind of the text track, defaults to nil. labelThe label of the text track, defaults to nil. formatThe format of the text track, defaults to nil. 
- 
                  
                  DeclarationSwift public func encode(to encoder: Encoder) throws
 TextTrackDescription Class Reference
      TextTrackDescription Class Reference