Hi,
is there a way to jump to a timeframe in a video texture?
And is it possible to restart the clip via script without reloading it?
thanks
Hi,
is there a way to jump to a timeframe in a video texture?
And is it possible to restart the clip via script without reloading it?
thanks
The internal video DOM object is accessible via the VideoTexture.video property, which allows you to control some characteristics and monitor the status of the video.
Here is the PG example - https://playground.babylonjs.com/#ZMCFYA#108
As one may see at the line 23
ANote0VideoVidTex.video.currentTime = 31;
so video starts from the 31st second.
If you’ll click on video to play/pause, you’ll see HTMLMediaElement.currentTime value in console.
For restart without reloading - I believe it is calling ‘loop’ and may be set to true
in VideoTextureSettings | Babylon.js Documentation
Hi labris, thanks a lot, that’s exactly what I was looking for!