WebGl Video player set time not working
Hello, I am developing a classic video player with play/pause button and interactive progress bar. The video plays correctly in the web browser, however I have an issue when trying to change the webgl VideoPlayer time, it always set the time to zero.
private void OnSliderPlayerMove(float val)
{
Debug.Log("can set time ? " + player.canSetTime);
// Update the videoplayer time
player.time = val * currentVideoDuration;
Debug.Log("Now time = " + player.time); // Always zero in webgl
}
The player.time is working perfectly on editor but not on webGL, it sets it to zero even though val*currentVideoDuration is not zero and even though canSetTime value is true. Any solution or alternative?
Thanks a lot for your help
Your answer
Follow this Question
Related Questions
Unity WebGL video player on mobile 0 Answers
Streaming video camera input from WebCamTexture on mobile? (Possibly via WebRTC or websocket?) 1 Answer
Can't switch between videos in Video Player WebGL 0 Answers
WebRTC in Unity using FrozenMountain 4 Answers
Unity WebGL Video black screen problem 2 Answers