SourceDescription
public class SourceDescription : NSObject, CodableThe SourceDescription object is used to describe a configuration of a source for a THEOplayer instance.
- 
                  
                  Represents the source of the media to be played. DeclarationSwift public var sources: [TypedSource] { get set }
- 
                  
                  The textTracks property can be used to add an array of side-loaded text tracks to the player. Remark - All valid tracks will be available for playback as long as the player’s source is not set again.
- Each text track should be described as a TextTrackDescription.
 DeclarationSwift public var textTracks: [TextTrackDescription]? { get set }
- 
                  
                  The ads property can be used to add an array of AdDescriptions to the player. All valid and supported advertisement files will be cued for playback in the player. Each ad in the array should be described as an AdDescription. DeclarationSwift public var ads: [AdDescription]? { get set }
- 
                  
                  Enables smooth switching to HLS for DVR when seeking in THEOlive or Millicast. Users must provide a typed source as a fallback in the source description DeclarationSwift public var enableStreamingDVR: Bool?
- 
                  
                  The poster property can be used to specify a content poster per source. Remark The player’s content poster will be updated as soon as a new source with valid poster is set, or when the player’s own poster property is altered.DeclarationSwift public var poster: URL? { get set }
- 
                  
                  Metadata that can be used to describe content, e.g. when casting to chromecast. DeclarationSwift public var metadata: MetadataDescription? { get set }
- 
                  
                  Sets the ABR configuration for the source being played. Remark Initially overrides THEOplayer.abr properties when setting a source. Changing THEOplayer.abr properties after the source is set will override these values.DeclarationSwift public var abr: SourceAbrConfiguration? { get set }
- 
                  
                  Constructs a SourceDescription. DeclarationSwift public init(sources: [TypedSource], textTracks: [TextTrackDescription]? = nil, ads: [AdDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = nil, abr: SourceAbrConfiguration? = nil, enableStreamingDVR: Bool = false)ParameterssourcesAn array of TypedSource which represent the media to be played. textTracksAn array of side-loaded text tracks represented as a TextTrackDescription, defaults to nil. adsAn array of ads represented as an AdDescription, defaults to nil. posterThe player’s content poster, defaults to nil. metadataThe metadata which can be used to describe the content, defaults to nil. enableStreamingDVRWhen passing a secondary fallback HLS/DASH source in the list of typed sources, enabling this option will allow seeking with Millicast/THEOlive sources. 
- 
                  
                  Constructs a SourceDescription. DeclarationSwift public init(source: TypedSource, textTracks: [TextTrackDescription]? = nil, ads: [AdDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = nil, abr: SourceAbrConfiguration? = nil)ParameterssourceAn array of TypedSource which represent the media to be played. textTracksAn array of side-loaded text tracks represented as a TextTrackDescription, defaults to nil. adsAn array of ads represented as an AdDescription, defaults to nil. posterThe player’s content poster, defaults to nil. metadataThe metadata which can be used to describe the content, defaults to nil. 
