THEOplayer > SourceConfiguration
Describes the configuration of a player's source.
Signature:
export interface SourceConfiguration
Property |
Type |
Description |
---|---|---|
ads (optional) |
List of AdDescriptions to be queued for playback. |
|
analytics (optional) |
List of AnalyticsDescriptions to configure analytics integrations for the media source. |
|
blockContentIfAdError (optional) |
|
Whether the player should be blocked when an ad-related error occurs. |
contentProtection (optional) |
Content protection configuration. |
|
drm (optional) |
Content protection configuration. |
|
manifestMetadataTrack (optional) |
|
Whether segments in a HLS manifest should be represented by cues in a metadata text track. |
metadata (optional) |
Chromecast metadata configuration. |
|
mutedAutoplay (optional) |
The muted autoplay policy. |
|
playAdsAfterTime (optional) |
|
If set, only allow ads to play that are scheduled after this time. |
poster (optional) |
|
The poster of the media source. |
textTracks (optional) |
List of text tracks to be side-loaded with the media source. |
|
timeServer (optional) |
|
The URL of a time server used by the player to synchronise the time in DASH sources. |
vr (optional) |
Virtual reality configuration. |
List of AdDescriptions to be queued for playback.
Signature:
ads?: AdDescription[];
List of AnalyticsDescriptions to configure analytics integrations for the media source.
Signature:
analytics?: AnalyticsDescription[];
Whether the player should be blocked when an ad-related error occurs.
Signature:
blockContentIfAdError?: boolean;
- A blocked player is not usable anymore. This has the same effect as invoking ChromelessPlayer.destroy().
Content protection configuration.
Signature:
contentProtection?: DRMConfiguration;
Warning: This API is deprecated.
Superseded by SourceConfiguration.contentProtection.
Content protection configuration.
Signature:
drm?: DRMConfiguration;
Warning: This API is deprecated.
Do not use this feature without consulting THEO Technologies.
Whether segments in a HLS manifest should be represented by cues in a metadata text track.
Signature:
manifestMetadataTrack?: boolean;
Chromecast metadata configuration.
Signature:
metadata?: ChromecastMetadataDescription;
- Available since v2.21.0.
The muted autoplay policy.
Signature:
mutedAutoplay?: MutedAutoplayConfiguration;
- The muted autoplay policy is impacted by this property and PlayerConfiguration.mutedAutoplay.
If set, only allow ads to play that are scheduled after this time.
Signature:
playAdsAfterTime?: number;
- This setting is strictly after - e.g. setting playAdsAfterTime
to 15 will cause the player to ignore an ad break scheduled to play at 15s.
The poster of the media source.
Signature:
poster?: string;
- An empty string (''
) clears the current poster.
- This poster has priority over ChromelessPlayer.poster.
List of text tracks to be side-loaded with the media source.
Signature:
textTracks?: TextTrackDescription[];
- A source change will reset side-loaded text tracks.
The URL of a time server used by the player to synchronise the time in DASH sources.
Signature:
timeServer?: string;
- The time server should return time in ISO-8601 format.
- Overrides the time server provided the DASH manifest's <UTCTiming>
.
- All sources will use the time server. Alternatively, for one source use BaseSource.timeServer.
Virtual reality configuration.
Signature:
vr?: VRConfiguration;