THEOplayer > BaseSource
Represents the common properties of a media resource.
Signature:
export interface BaseSource
Property |
Type |
Description |
---|---|---|
abr (optional) |
The source's ABR configuration. |
|
crossOrigin (optional) |
The cross-origin setting of the source. |
|
dash (optional) |
The configuration for controlling playback of an MPEG-DASH stream. |
|
hls (optional) |
The configuration for controlling playback of an HLS stream. |
|
hlsDateRange (optional) |
|
Whether the player should parse and expose date ranges from HLS manifests. |
ignoreEmbeddedTextTrackTypes (optional) |
A list of embedded TextTrackTypes to ignore when parsing media segments. |
|
integration (optional) |
The integration ID of the source. |
|
lcevc (optional) |
|
Whether this source should be played using the LCEVC sdk. |
liveOffset (optional) |
|
The offset in seconds used to determine the live point. This live point is the end of the manifest minus the provided offset. |
lowLatency (optional) |
|
Whether the source should be played in the low-latency-mode of the player. |
timeServer (optional) |
|
The URL of a time server used by the player to synchronise the time in DASH sources. |
useCredentials (optional) |
|
Whether the player is allowed to use credentials for cross-origin requests. |
useManagedMediaSource (optional) |
|
(Experimental) Whether to use |
useNativePlayback (optional) |
|
Whether this source should be played using native playback. |
The source's ABR configuration.
Signature:
abr?: SourceAbrConfiguration;
- Available since v3.1.0.
- Overrides PlayerConfiguration.abr.
- Used for DASH and LL-HLS streams.
The cross-origin setting of the source.
Signature:
crossOrigin?: CrossOriginSetting;
- Available since v2.9.0.
The configuration for controlling playback of an MPEG-DASH stream.
Signature:
dash?: DashPlaybackConfiguration;
- Available since v2.79.0.
- Ignored for non-DASH streams.
The configuration for controlling playback of an HLS stream.
Signature:
hls?: HlsPlaybackConfiguration;
- Available since v2.82.0.
- Ignored for non-HLS streams.
Whether the player should parse and expose date ranges from HLS manifests.
Signature:
hlsDateRange?: boolean;
- Available since v2.61.0.
A list of embedded TextTrackTypes to ignore when parsing media segments.
Signature:
ignoreEmbeddedTextTrackTypes?: TextTrackType[];
- Available since v5.9.0
- Only 'cea608' and 'emsg' can currently be ignored.
- Only for DASH and HLS playback.
The integration ID of the source.
Signature:
integration?: SourceIntegrationId;
- This can be used to signal that a source is specific to an integration.
Whether this source should be played using the LCEVC sdk.
Signature:
lcevc?: boolean;
- Requires the LCEVC feature to be enabled.
- Requires the V-Nova LCEVC SDK to be loaded on the page.
- Only available for DASH and HLS streams.
The offset in seconds used to determine the live point. This live point is the end of the manifest minus the provided offset.
Signature:
liveOffset?: number;
- Available since v2.35.0.
Whether the source should be played in the low-latency-mode of the player.
Signature:
lowLatency?: boolean;
- This setting must be true
when using Low-Latency CMAF with ABR.
- Available since v2.62.0.
The URL of a time server used by the player to synchronise the time in DASH sources.
Signature:
timeServer?: string;
- Available since v2.47.0.
- The time server should return time in ISO-8601 format.
- Overrides the time server provided the DASH manifest's <UTCTiming>
.
- Only this source will use the time server. Alternatively, for all source use SourceConfiguration.timeServer.
Whether the player is allowed to use credentials for cross-origin requests.
Signature:
useCredentials?: boolean;
- Credentials are cookies, authorization headers or TLS client certificates.
(Experimental) Whether to use ManagedMediaSource
if available.
Signature:
useManagedMediaSource?: boolean;
- Available since v6.2.0.
- At the moment, this requires iOS 17.1 beta 2 or higher, with the "Managed Media Source API" feature flag turned on in the Advanced settings of Safari.
- Ignored if BaseSource.useNativePlayback is true
.
Whether this source should be played using native playback.
Signature:
useNativePlayback?: boolean;
- Available since v2.68.0.
- Ignored for DASH streams.
- Only supported on browsers that can play HLS streams natively, will error otherwise.