Version: 2.67.0

TypedSource

THEOplayer > TypedSource

TypedSource interface

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

Properties

Property

Type

Description

contentProtection (optional)

DRMConfiguration

The content protection parameters for the media resource.

drm (optional)

DRMConfiguration

The content protection parameters for the media resource.

src (optional)

string

The source URL of the media resource.

ssai (optional)

ServerSideAdInsertionConfiguration

The Server-side Ad Insertion parameters for the media resource.

type (optional)

string

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.