VideoPlayerMediaSourceConfig interface

Configuration for creating a VideoPlayerMediaSource.

Signature:

export interface VideoPlayerMediaSourceConfig 

Properties

PropertyModifiersTypeDescription
loop?readonlyboolean(Optional) Set to true to loop the video playback.
url?readonlystring(Optional) The URL of the video to preload into the media source (optional).

VideoPlayerMediaSourceConfig.loop property

Set to true to loop the video playback.

Signature:

readonly loop?: boolean;

Remarks

This can also be changed after the media source is created by calling VideoPlayerMediaSource.setLooping().

VideoPlayerMediaSourceConfig.url property

The URL of the video to preload into the media source (optional).

Signature:

readonly url?: string;

Remarks

If this is null no video will be preloaded and you must call VideoPlayerMediaSource.loadVideo() to load a video.

If a video URL is specified, the promise returned by MediaSourceManager.createVideoPlayerSource() will not resolve until the video is ready to be played.