Video not playing

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

https://playcanvas.com/editor/scene/1470703

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/

1 Like

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);
2 Likes

okay ill try

thankyou for the advice