Skip to Content
The new glomex player is released! 🎉View upgrade guide

Interface: MediaSource

Properties

src

src: string

The source URL of this media source.


drmProviderHeaderName?

optional drmProviderHeaderName: string

DRM provider header name. Only relevant in combination with tokens.


fairplayCertificateUri?

optional fairplayCertificateUri: string

FairPlay certificate URI.


fairplayLicenseUri?

optional fairplayLicenseUri: string

Fairplay license URI. Or undefined when fairplayToken in combination with drmProviderHeaderName is provided.


fairplayToken?

optional fairplayToken: string

FairPlay token.


id?

optional id: string

Unique identifier of the media source.

Default Value

... a generated identifier


mimetype?

optional mimetype: Mimetype

Mimetype of the media source.

Default Value

detected from file extension of given src or undefined


playreadyLicenseUri?

optional playreadyLicenseUri: string

PlayReady license URI. Or undefined when playreadyToken in combination with drmProviderHeaderName is provided.


playreadyToken?

optional playreadyToken: string

PlayReady token.


validUntil?

optional validUntil: number

Until the media source is valid. Unix timestamp in milliseconds.


widevineLicenseUri?

optional widevineLicenseUri: string

Widevine license URI. Or undefined when widevineToken in combination with drmProviderHeaderName is provided.


widevineToken?

optional widevineToken: string

Widevine token.

Last updated on