dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

Add support for rendering video as image

Open JacobMarshallPP opened this issue 8 years ago • 2 comments

When processing the video clone, we override the clone element with an image element, which either contains the successful render of the video element (drawn to a canvas), or a single 1x1 transparent pixel (stretched to the original element's dimensions).

For videos cross-origin, the transparent pixel is used, as the canvas which the video is drawn to becomes tainted. And for videos which don't match the dimensions of the element, the scaling & offset is applied to the image as well.

JacobMarshallPP avatar Feb 16 '17 23:02 JacobMarshallPP

One strange thing with adding

screenshot 2017-02-17 14 18 27

Refreshing the window, or in my case the embedded

Not entirely sure at this current time what the issue is. I am going to do some profiling to see whether I can diagnose the actual root cause.

JacobMarshallPP avatar Feb 17 '17 01:02 JacobMarshallPP

Why was this not merged yet?

marcusx2 avatar Oct 25 '21 20:10 marcusx2