Hi,
I am displaying a video onto a plane using the video texture. Now I want to display the HTML5 video controls in the below format. Is there any way I can do it?
I tried to setup the video controls in the below method but its not working
//TV
var tv = BABYLON.Mesh.CreatePlane("plane", 20.0, scene);
tv.position.y = 20;
tv.position.z = 9;
//TV material and textures
var mat = new BABYLON.StandardMaterial("mat", scene);
var mat1 = new BABYLON.StandardMaterial("mat", scene);
var videoTexture = new BABYLON.VideoTexture("video", [], scene, true, false);
mat.diffuseTexture = videoTexture;
tv.material = mat;
var htmlVideo = mat.diffuseTexture.video;
htmlVideo.setAttribute("controls", "true");
htmlVideo.setAttribute("src", "Video3.mp4");