CLVideoProps
Properties
media
media: PlayerConfiguration | Playlist;
Media to be played. It can be a single player configuration or a playlist.
Downloaded media doesn't work with playlists on Apple devices. We recommend using the single player configuration for downloaded media.
Exmaple
media={{
source: 'https://demo.cf.castlabs.com/media/prestohls/master.m3u8',
}}
onError
onError?: ErrorCallback;
Function to be triggered on error.
onFullyBuffered
onFullyBuffered?: GenericCallback;
Function to be triggered on fully buffered.
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.
style
style?: any;