I have wasted countless hours trying to figure out why my Canvas wasn't properly drawing the data from my Video element using the drawImage
function.
The following snippet is what I had initially attempted, in an effort to merely output the exact video output to my canvas:
this.canvasContext.drawImage(this.mainVideoElement, 0, 0);
However, this only outputted a small rectangle of the top left of my Video element's current content. I then attempted all sorts of variations of the parameters defined in the drawImage documentation, and even after manually defining my heights/widths, the result in my Canvas was significantly (at least 5-10x) lower resolution than the Video content.