Hello,
Here is Coad;
var video = document.createElement(‘video’) as HTMLVideoElement;
video.src = "assets/ThreeAsset/video/bubles_in_park_1_10.mp4";
video.load();
video.controls = true
video.loop = true;
console.log(video);
var texture = new THREE.VideoTexture(video);
texture.needsUpdate;
texture.minFilter = THREE.LinearFilter;
texture.magFilter = THREE.LinearFilter;
texture.format = THREE.RGBFormat;
// texture.crossOrigin = 'anonymous';
var imageObject = new THREE.Mesh(
new THREE.PlaneGeometry(300, 500),
new THREE.MeshBasicMaterial({ map: texture }
));
video.play();
this.scene.add(imageObject);
when i am using video.controls = true or video.setAttribute(“controls”,“controls”) controls are not coming
Any help??