[SOLVED] Not possible to load diferent video textures (from example)

It does not seem possible to load different video textures:
https://playcanvas.com/editor/scene/1116344

Falls back on playing one texture only, and then plays other asset video afterwards.
Adding more videos to the mix only make the problem worse.

Hi @Thomas_Due_Nielsen,

Check this post:

3 Likes

ok, nice. Works. :slight_smile:
So to get it right. The difference lays within:

video.addEventListener(‘canplaythrough’, function (e) {
app.fire(this.playEvent, this.videoTexture);
video.play();
}.bind(this));

Where you use canplay instead and without video.play.
Guess it evolves around the videos laying in a list of instances the original example ‘plays through’?

1 Like