TypedSource
@objc(THEOplayerTypedSource)
open class TypedSource : NSObject, CodableThe TypedSource object provides the following properties:
Remark
- This represents a media resource characterized by a URL to the resource and optionally information about the resource.
- This optional information can be DRM parameters for that specific source.
- 
                  
                  The ‘src’ property represents the source URL of the manifest or video file to be played. DeclarationSwift @available(*, deprecated, message: "This property's type will change from URL to String with the next major release.") @objc public var src: URL
- 
                  
                  Specifies the content type (MIME type) of source being played. Remark - 'application/x-mpegURL'or- 'application/vnd.apple.mpegurl'indicates HLS.
- 'video/mp4'indicates MP4.
- 'audio/mp3'indicates MP3.
 DeclarationSwift @objc public var type: String
- 
                  
                  This optional property can be used to specify required DRM parameters for a playback source. Remark Information like the license acquisition URL, request headers and other vendor-specific parameters are wrapped in an object implementing the DRMConfiguration protocol.DeclarationSwift public var drm: DRMConfiguration?
- 
                  
                  This optional property can be used to specify CORS parameters. DeclarationSwift public var crossOrigin: CrossOrigin?
- 
                  
                  Parse / Expose date ranges from HLS manifest. DeclarationSwift public var hlsDateRange: Bool?
- 
                  
                  This optional property can be used to specify required Server-Side Ad Insertion parameters for a playback source. Remark Parameters used to configure the player to optimally play streams with server-inserted ads from specific SSAI vendors are wrapped in an object implementing the ServerSideAdInsertionConfiguration protocol.DeclarationSwift @objc public var ssai: ServerSideAdInsertionConfiguration?
- 
                  
                  The HTTP request headers associated with the source. These headers are passed to every HTTP request that the player will make which include: master playlist, media playlist and segment requests. DeclarationSwift public var headers: [String : String]?
- 
                  
                  Send Common Media Client Data (CTA-5004) as HTTP request headers. DeclarationSwift public var cmcd: Bool?
- 
                  
                  Constructs a TypedSource. DeclarationSwift public convenience init(src: String, type: String, drm: DRMConfiguration? = nil, crossOrigin: CrossOrigin? = nil, ssai: ServerSideAdInsertionConfiguration? = nil, hlsDateRange: Bool? = nil, headers: [String : String]? = nil, cmcd: Bool? = nil)ParameterssrcThe source URL. typeThe content type (MIME type) of the source, defaults to nil. drmThe optional DRM configuration, defaults to nil. crossOriginThe CORS policy to be used, defaults to nil. ssaiThe Server-side ad insertion configuration, defaults to nil. hlsDateRangeWhether to parse/expose the date ranges from the HLS manifest, defaults to nil. headersThe HTTP request headers associated with the source. cmcdWhether to send Common Media Client Data (CTA-5004) as HTTP request headers, defaults to nil. 
