Bug 1698054 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

FWIW, you mention that you wait for canplay before trying to use the video. That's not necessarily waiting long enough. You want to `await video.play();` to make sure that webgl will find data to upload: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play

I can repro a blank frame at the stage where "skip intro" appears (with the young man typing on the keyboard). A brief flash of black for that video appeared, and I see in console:
> WebGL warning: tex(Sub)Image[23]D: Failed to retrieve source bytes for CPU upload. (23 repeats)

That's from here:
https://searchfox.org/mozilla-central/source/dom/canvas/ClientWebGLContext.cpp#4314
FWIW, you mention that you wait for canplay before trying to use the video. That's not necessarily waiting long enough. You want to `await video.play();` to make sure that webgl will find data to upload: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play

---

I can repro a blank frame at the stage where "skip intro" appears (with the young man typing on the keyboard). A brief flash of black for that video appeared, and I see in console:
> WebGL warning: tex(Sub)Image[23]D: Failed to retrieve source bytes for CPU upload. (23 repeats)

That's from here:
https://searchfox.org/mozilla-central/source/dom/canvas/ClientWebGLContext.cpp#4314

Back to Bug 1698054 Comment 4