Version: 2.69.0

TypedSource

THEOplayer > TypedSource

TypedSource interface

Represents a media resource characterized by a URL to the resource and optionally information about the resource.

Signature:
export interface TypedSource extends BaseSource

Properties

PropertyTypeDescription
contentProtectionDRMConfigurationThe content protection parameters for the media resource.
drmDRMConfigurationThe content protection parameters for the media resource.
srcstringThe source URL of the media resource.
ssaiServerSideAdInsertionConfigurationThe Server-side Ad Insertion parameters for the media resource.
typestringThe content type (MIME type) of the media resource, represented by a value from the following list:
- 'application/dash+xml': The media resource is an MPEG-DASH stream.
- 'application/x-mpegURL' or 'application/vnd.apple.mpegurl': The media resource is an HLS stream.
- 'video/mp4', 'video/webm' and other formats: The media resource should use native HTML5 playback if supported by the browser.