THEOplayer > TypedSource
Inherits from BaseSource. See parent page for inherited properties and methods.
Represents a media resource characterized by a URL to the resource and optionally information about the resource.
Signature:
export interface TypedSource extends BaseSource
Property |
Type |
Description |
---|---|---|
contentProtection (optional) |
The content protection parameters for the media resource. |
|
drm (optional) |
The content protection parameters for the media resource. |
|
src (optional) |
|
The source URL of the media resource. |
ssai (optional) |
The Server-side Ad Insertion parameters for the media resource. |
|
type (optional) |
|
The content type (MIME type) of the media resource, represented by a value from the following list: |
The content protection parameters for the media resource.
Signature:
contentProtection?: DRMConfiguration;
- Available since v2.15.0.
Warning: This API is deprecated.
Superseded by TypedSource.contentProtection.
The content protection parameters for the media resource.
Signature:
drm?: DRMConfiguration;
The source URL of the media resource.
Signature:
src?: string;
- Required if the ssai
property is absent.
- Available since v2.4.0.
The Server-side Ad Insertion parameters for the media resource.
Signature:
ssai?: ServerSideAdInsertionConfiguration;
- Available since v2.12.0.
The 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.
- 'application/vnd.theo.hesp+json'
: The media resource is an HESP stream.
Signature:
type?: string;
- Available since v2.4.0.