Skip to main content

CLVideoProps

Properties

onError

onError?: ErrorCallback;

Function to be triggered on error.


onFullyBuffered

onFullyBuffered?: GenericCallback;

Function to be triggered on fully buffered.


onModifierCompleted

onModifierCompleted?: HttpModifierCallback;

Function to be triggered on a new HTTP request or response.


onPlayerModelChanged

onPlayerModelChanged?: GenericCallback;

Function to be triggered on metadata changed.


onSeekCompleted

onSeekCompleted?: GenericCallback;

Function to be triggered on seeking completed.


onSeekTo

onSeekTo?: SeekToCallback;

Function to be triggered on seeking to another position.


onStateChanged

onStateChanged?: StateChangedCallback;

Function to be triggered on state changed.


onThumbnailLoaded

onThumbnailLoaded?: ThumbnailLoadedCallback;

Function to be triggered on thumbnail loaded.


onViewCreated

onViewCreated?: NewInstanceCallback;

Function to be triggered on view created.


playerConfig

playerConfig: PlayerConfiguration;

The main configuration of the player for url, side-loader tracks etc.

Exmaple

 playerConfig={{
version: '1',
contentUrl: 'https://demo.cf.castlabs.com/media/prestohls/master.m3u8',
}}

style

style?: any;