Issue with video texture loading (onLoadObservable not called)

Hi there !

I want to use a VideoTexture for a plane material. I followed the documentation, and I added an onLoadObservable to create the target plane with the right aspect ratio of the loaded video. It worked well with babylon.js 4.2.2.

But recently I update to 5.4x.x, and it seems that the onLoadObservable is not called anymore… Do you experience this issue ?

So I looked to the documentation if there is any changes, but the playground used as a demonstration is not working anymore on babylon.js 5.46.0, but it works well on 4.2.1 (https://playground.babylonjs.com/#ZMCFYA#83)

Could you help me on this point ? Thank you in advance !

Cheers

Hey! Let me take a look at this :slight_smile:

1 Like

Thanks for your patience and for reporting this, I pushed a fix to: Delay resize event listener to after video internal texture is created. by carolhmj · Pull Request #13520 · BabylonJS/Babylon.js (github.com) :smiley:

2 Likes

Thank you very much for your help !