Trying to call drawImage
with a video
whose source is a webcam feed seems to fail in Firefox with an
NS_ERROR_NOT_AVAILABLE: Component is not available
.
I have tried to wait for every event the video tag fires: play
, playing
, canplay
, loadeddata
, loadedmetadata
, and so on, and nothing works. This seems to be because these events are firing before the stream is properly loaded into the <video>
element.
JSFiddle with error (You can view the error in the console)
A side effect is that the width and height of the video is also incorrect.