0

I have made a screenshot function with Javascript for our page, when user click to send issues to us, it will automatically do screenshot of the page through "html2canvas", so we could see something in the snapshot about the issue.

Since we use Iframe to load third-party sites, "html2canvas" don't work to do screenshot inside the Iframe. I searched and found that this library does not support Iframe.

Then I found the "MediaDevices.getDisplayMedia()" screen capture API, I could use it to capture the page. Howerver, as the api could capture screen out of browser page, it needs user permission every time Javascript do screenshot.

I wonder if anyone know a tool or sdk that could screenshot the web page with iframe, without user operation. Thank you!

Eason Yu
  • 319
  • 1
  • 5
  • 1
    Related - https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7 – James Sep 17 '22 at 11:20

0 Answers0