bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

Image Node not rendering on Firefox #145

Open germain-gg opened 5 years ago

germain-gg commented 5 years ago

Hi,

Using the latest version of VideoContext and this snippet of code, it looks to me that image rendering is broken on VC.

        const canvas = document.getElementById("canvas");
        const button = document.getElementById("button");
        const vc = new VideoContext(canvas);
        const in1 = vc.image("image.png", 0);
        in1.start(0);
        in1.end(10);
        in1.connect(vc.destination);

This works on Chrome 72 on MacOS and other vendors. However this does fail on Firefox 65 and Firefox Nightly.

Reported warning in the console is

Error: WebGL warning: texImage2D: Alpha-premult and y-flip are deprecated for non-DOM-Element uploads.

It can be traced back to this Bugzilla issue https://bugzilla.mozilla.org/show_bug.cgi?id=1400077

I will probably look into that in the next couple of days

germain-gg commented 5 years ago

I looked a bit more into this issue. It is definitely an issue around createImageBitmap. I suspect a regression on the Firefox JS VM.

I created an issue on Bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1533680

PTaylour commented 5 years ago

Image nodes still isn't working for me on v67

Looking at your bug report, no one has picked it up yet

PTaylour commented 5 years ago

is blocked by https://bugzilla.mozilla.org/show_bug.cgi?id=1533680

germain-gg commented 5 years ago

Looks like there are some movement on that front https://bugzilla.mozilla.org/show_bug.cgi?id=1367251

Will test as soon as it land on Firefox Nightly

yakca commented 4 years ago

Still awaiting fix from Firefox upstream