I have two questions
1 How to add a video slider/player to a video texture? User initiates by clicking on play/pause .Here is my work in progress project: https://playcanvas.com/editor/scene/673061
2 How to stop a video from looping?
Thanks
I have two questions
1 How to add a video slider/player to a video texture? User initiates by clicking on play/pause .Here is my work in progress project: https://playcanvas.com/editor/scene/673061
2 How to stop a video from looping?
Thanks
You will have to create your own UI slider to do so. AFAIK there is nothing built into the engine to do interactive slider bars. Here’s a sample project there does a progress bar that you could adapt. https://developer.playcanvas.com/en/tutorials/ui-elements-progress/
Check the video texture script (https://playcanvas.com/editor/code/590266?tabs=16602530) and you can see a ‘loop’ attribute being set on the video object.
Thanks for the prompt reply
I added a progress bar to mu project. Since I am new to scripting, How can I adapt that script to control the video (as a video scrubber)? So people can use the slider to interact with the video. New work in progress: https://playcanvas.com/editor/scene/673061
Thanks