SourceDescription
@objc(THEOplayerSourceDescription)
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 @objc 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 @objc public var textTracks: [TextTrackDescription]? { get set }
- 
                  
                  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 @objc public var poster: URL? { get set }
- 
                  
                  Metadata that can be used to describe content, e.g. when casting to chromecast. DeclarationSwift @objc public var metadata: MetadataDescription? { get set }
- 
                  
                  Constructs a SourceDescription. DeclarationSwift public init(sources: [TypedSource], textTracks: [TextTrackDescription]? = nil, ads: [AdDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = nil)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. 
- 
                  
                  Constructs a SourceDescription. DeclarationSwift public init(source: TypedSource, textTracks: [TextTrackDescription]? = nil, ads: [AdDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = 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. 
- 
                  
                  Constructs a SourceDescription. DeclarationSwift convenience init(verizonMediaSources: [VerizonMediaSource], textTracks: [TextTrackDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = nil)ParametersverizonMediaSourcesA list of VerizonMediaSources.textTracksA list of TextTrackDescriptions, defaults to nil.posterThe poster URL, defaults to nil. metadataThe metadata that can be used to describe content, e.g. when casting to chromecast. Defaults to nil. 
- 
                  
                  Constructs a SourceDescription. DeclarationSwift convenience init(verizonMediaSource: VerizonMediaSource, textTracks: [TextTrackDescription]? = nil, poster: String? = nil, metadata: MetadataDescription? = nil)ParametersverizonMediaSourcetextTracksA list of TextTrackDescriptions, defaults to nil.posterThe poster URL, defaults to nil. metadataThe metadata that can be used to describe content, e.g. when casting to chromecast. Defaults to nil. 
- 
                  
                  The VRConfigurationused to configure VR video playback.DeclarationSwift @objc var vr: VRConfiguration? { get set }
- 
                  
                  Constructs a SourceDescription.Remark A known limitation is that only the first source will play. DeclarationSwift convenience init(sources: [TypedSource], ads: [AdDescription]? = nil, textTracks: [TextTrackDescription]? = nil, poster: String? = nil, analytics: [AnalyticsDescription]? = [], metadata: MetadataDescription? = nil, vr: VRConfiguration? = nil)ParameterssourcesList of TypedSourcewhich represent the media to be played. Only the first source will play.adsList of ads represented as an AdDescription, defaults to nil.textTracksList of side-loaded text tracks represented as a TextTrackDescription, defaults to nil.posterThe url of the the poster image that will be visible the moment the source is set if autoplay is disabled, defaults to nil. analyticsList of pre-integrated analytics services of the player, defaults to []. metadataThe metadata which can be used to describe the content, defaults to nil. vrThe VR configuration for this source, defaults to nil. 
- 
                  
                  Constructs a SourceDescription.DeclarationSwift convenience init(source: TypedSource, ads: [AdDescription]? = nil, textTracks: [TextTrackDescription]? = nil, poster: String? = nil, analytics: [AnalyticsDescription]? = [], metadata: MetadataDescription? = nil, vr: VRConfiguration? = nil)ParameterssourceA TypedSourcewhich represents the media to be played.adsList of ads represented as an AdDescription, defaults to nil.textTracksList of side-loaded text tracks represented as a TextTrackDescription, defaults to nil.posterThe url of the the poster image that will be visible the moment the source is set if autoplay is disabled, defaults to nil. analyticsList of pre-integrated analytics services of the player, defaults to []. metadataThe metadata which can be used to describe the content, defaults to nil. vrThe VR configuration for this source, defaults to nil. 
- 
                  
                  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 var ads: [AdDescription]? { get set }
- 
                  
                  The analytics property can be used to add an array of analytics integrations to the player. DeclarationSwift @objc var analytics: [AnalyticsDescription]? { get set }
- 
                  
                  Constructs a SourceDescription. DeclarationSwift convenience init(sources: [TypedSource], ads: [AdDescription]? = nil, textTracks: [TextTrackDescription]? = nil, poster: String? = nil, analytics: [AnalyticsDescription]? = [], metadata: MetadataDescription? = nil)ParameterssourcesList of TypedSourcewhich represent the media to be played.adsList of ads represented as an AdDescription, defaults to nil.textTracksList of side-loaded text tracks represented as a TextTrackDescription, defaults to nil.posterThe url of the the poster image that will be visible the moment the source is set if autoplay is disabled, defaults to nil. analyticsList of pre-integrated analytics services of the player, defaults to []. metadataThe metadata which can be used to describe the content, defaults to nil. 
- 
                  
                  Constructs a SourceDescription. DeclarationSwift convenience init(source: TypedSource, ads: [AdDescription]? = nil, textTracks: [TextTrackDescription]? = nil, poster: String? = nil, analytics: [AnalyticsDescription]? = [], metadata: MetadataDescription? = nil)ParameterssourceA TypedSourcewhich represents the media to be played.adsList of ads represented as an AdDescription, defaults to nil.textTracksList of side-loaded text tracks represented as a TextTrackDescription, defaults to nil.posterThe url of the the poster image that will be visible the moment the source is set if autoplay is disabled, defaults to nil. analyticsList of pre-integrated analytics services of the player, defaults to []. metadataThe metadata which can be used to describe the content, defaults to nil. 
 SourceDescription Class Reference
      SourceDescription Class Reference