Closed Bug 1481406 Opened 4 years ago Closed 3 years ago

Can't draw a video element to canvas


(Firefox for Android Graveyard :: Audio/Video, defect)

Firefox 61
Not set


(firefox64 affected, firefox65 affected)

Tracking Status
firefox64 --- affected
firefox65 --- affected


(Reporter: gaikov, Unassigned)



User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36

Steps to reproduce:

I'm trying to draw a video element into canvas:

video = document.createElement("video");
video.src = "testVideo.mp4";
video.autoplay = true;
video.loop = true;

context.drawImage(video, 0, 0, 400, 300);

I've tryed this:

but it does not work the video is not visible only sound

Actual results:

Error console reports:
NS_ERROR_NOT_AVAILABLE: Component is not available

Expected results:

video should be rendered. in other browsers everything is fine
See Also: → 879717
Duplicate of this bug: 1505715
Thanks for the report!
I was able to reproduce on this pages as well:

Marking the bug as NEW. Tested with HTC 10(Android 8.0.0).
Ever confirmed: true
Dupe of 1479947 which is a dupe of
Closed: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1486659

Note that is marked as fixed, but the bug, as reproduced in, is still present in Firefox for Android v68.2.1.

Yes, I confirm that. This bug has been around for a while now and is not fixed on latest Firefox for Android.

I can also replicate this on Firefox for Android v68.3.0 using the codepen link provided ( The canvases are empty despite videos having loaded, and an error message "NS_ERROR_NOT_AVAILABLE: " is logged in the console.

Works fine on Chrome for Android v79.0.3945.79 (both videos and canvases are rendered).

Should I file a new report or should this one be reopened?

Neither. Firefox for Android 68 is a finished product. Checking the behavior on Firefox Review and/or reference browser would be the thing to do they are using Gecko 73. &

If it reproduces on those builds opening a bug at would be useful.

Thanks for tour hints. I just tried with Fenix nightly and I reproduce the bug :(

Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.