hello all ,
the video player is not working in playcanvas . i have updated the video texture file but audio is working but not the vidoe
please review my code below
hello all ,
the video player is not working in playcanvas . i have updated the video texture file but audio is working but not the vidoe
please review my code below
Hi @anya,
Indeed I can hear the audio of your video, not sure why the video is playing like that.
Just for the sake of trying that, can you try playing the same video on the default PlayCanvas video texture example? To rule out any issue with the vimeo video:
https://developer.playcanvas.com/en/tutorials/video-textures/
This is because the playEvent is not fired from the video-vexture.js so tv-screen.js never updates the material to reference the video texture.
In video-texture.js, change the mouse down event to:
this.app.mouse.once(pc.EVENT_MOUSEDOWN, function () {
video.play();
app.fire(this.playEvent, this.videoTexture);
}, this);
okay ill try
thankyou for the advice