Search code examples
javascripthtmlimagecanvasquicktime

Using canvas to grab pixel data from page


If I have a QT video on a page (where QT is a requirement that can't be changed) how can I grab the pixel data of the current frame that is being shown with canvas? I am aware that this is possible with getImage(videoElement, .....) but I am looking for a solution that uses QT.

If getting the pixel data is not possible then is it possible to take a screenshot of the page using canvas and trim it perhaps?

Or am I going about this the wrong way and don't need to use canvas at all?


Solution

  • This is not possible with canvas. The function you are referring to has nothing to do with canvas, it has to do with the video element. The video element returns a picture that the canvas can use, and the QT object (or embed) does not.