phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Update video texture after loading

Open samme opened this issue 3 years ago • 0 comments

This PR

  • Fixes a bug

I found that loadURL() (without noAudio = true) didn't show anything and didn't emit the VIDEO_CREATED event, although I could see the video element had loaded. I assume loadMediaStream() is the same.

I added a load event handler that calls updateTexture() and this seems to fix it — the video appears and VIDEO_CREATED is emitted.

samme avatar Sep 10 '22 17:09 samme