TypedSource
@objc(THEOplayerTypedSource)
public 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 @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.
 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?
- 
                  
                  Constructs a TypedSource. DeclarationSwift public init(src: String, type: String, drm: DRMConfiguration? = nil, crossOrigin: CrossOrigin? = nil, hlsDateRange: 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. hlsDateRangeWheter to parse/expose the date ranges from the HLS manifest, defaults to nil. 
- 
                  
                  Initializes a TypedSource.DeclarationSwift public convenience init(src: String, type: String, drm: DRMConfiguration? = nil, crossOrigin: CrossOrigin? = nil, ssai: ServerSideAdInsertionConfiguration? = nil, hlsDateRange: Bool? = false)ParameterssrcThe source URL of the manifest or video file to be played. typeThe content type (MIME type) of the source. drmThe 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 false. 
 TypedSource Class Reference
      TypedSource Class Reference