PropTypes.stringA string that each represent a video material that was created via ViroMaterials.createMaterials(). A video material has it's diffuseTexture property set to a video asset.
paused
Type
Description
PropTypes.boolSet to true to pause the video. This is set to false by default.
loop
Type
Description
PropTypes.boolSet to true to loop the video. This is set to false by default.
muted
Type
Description
PropTypes.boolSet to true to mute the video. This is set to false by default.
onBufferEnd
Type
Description
PropTypes.funcCallback invoked when the underlying video component has finished buffering.
onError
Type
Description
PropTypes.funcCallback invoked when the Video fails to load. The error message is contained in event.nativeEvent.error
onBufferStart
Type
Description
PropTypes.funcCallback invoked when video begins buffering. Called at least once at the beginning of playback/video creation.
onFinish
Type
Description
PropTypes.funcCallback that is called when the video is finished playing. This function isn't called at the end of a video if looping is enabled.
onUpdateTime
Type
Description
PropTypes.funcCallback that is called when the current playback position has changed.For example: _onUpdateTime(currentPlaybackTimeInSeconds, totalPlayBackDurationInSeconds) { // Update Seek Bar or custom UI}
volume
Type
Description
PropTypes.numberA number represented volume from 0 to 1. Max volume is equal to 1. Min volume is equal to 0. This is set to 1 by default.
Methods
seekToTime(timeInSeconds: number)
Sets the video to the specified time in seconds. |Parameters | Description | | ------------- |:------------- ||timeInSeconds | Number of seconds into video to seek to. |