Source Description API
-
The
See moreSourceDescription
object is used to describe a configuration of a source for a THEOplayer instance.Declaration
Swift
@objc(THEOplayerSourceDescription) public class SourceDescription : NSObject, Codable
-
The
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.
Declaration
Swift
@objc(THEOplayerTypedSource) public class TypedSource : NSObject, Codable
-
A
TypedSource
with MediaTailor integration.Describing a source in Swift like this:
MediaTailorSource( src: "https://your.url.here", type: "application/x-mpegurl" )
Will result in a source that is the equivalent of the following JSON TypedSource:
See more{ "integration": "mediatailor", "src": "https://your.url.here" "type": "application/x-mpegurl", }
Declaration
Swift
public class MediaTailorSource : TypedSource
-
A TextTrackDescription object contains a description of a side-loaded text track that will be added to the player.
Remark
MP4/3 streams only support VTT formatted text tracks. AirPlay is not supported with MP4/3 streams.Declaration
Swift
@objc(THEOplayerTextTrackDescription) open class TextTrackDescription : NSObject, Codable
-
The MetadataDescription object is used to describe content.
See moreDeclaration
Swift
@objc(THEOplayerMetadataDescription) public class MetadataDescription : NSObject, Codable