Closed Bug 1481406 Opened 4 years ago Closed 3 years ago
Can't draw a video element to canvas
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: https://stackoverflow.com/questions/18580844/firefox-drawimagevideo-fails-with-ns-error-not-available-component-is-not-av 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
Thanks for the report! I was able to reproduce on this pages as well: - https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_drawimage_video - https://codepen.io/kus/pen/aOqvWP/ Marking the bug as NEW. Tested with HTC 10(Android 8.0.0).
Dupe of 1479947 which is a dupe of
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1486659
You need to log in before you can comment on or make changes to this bug.