Optional analyticsThe SourceMetadata for the Source to setup custom analytics tracking
Optional descriptionThe description of the video source.
Optional drmThe DRM config for the source.
Optional isIndicates whether to show the poster image during playback. Useful, for example, for audio-only streams.
Optional metadataThe optional custom metadata. Also sent to the cast receiver when loading the Source.
Optional nativeOptionally user-defined string id for the native instance.
Used to access a certain native instance from any point in the source code then call
methods/properties on it.
When left empty, a random UUIDv4 is generated for it.
Accessing or creating the Player with nativeId equal to my-player:
const player = new Player({ nativeId: 'my-player' })
player.play(); // call methods and properties...
Optional optionsThe SourceOptions for this configuration.
Optional posterThe URL to a preview image displayed until the video starts.
Optional subtitleExternal subtitle tracks to be added into the player.
Optional thumbnailExternal thumbnails to be added into the player.
Optional titleThe title of the video source.
Optional typeThe SourceType for this configuration.
The url for this source configuration.
Represents a source configuration that be loaded into a player instance.