I want to take a screenshot of the webpage so that it can be used to share on various social media platforms. The webpage has visual elements displayed in iframe which are from different domain (not same origin).
So far i have checked
html2canvas, but looks like there is a limitation where the screenshot wolud not be generated properly if there are visual elements on the page loaded from different origingetUserMedia: but looks like this triggers a user image capture and not webpage capture. here is link to codepen i foundhttps://codepen.io/jgalazm/pen/bGEgEGW
Here are couple of my questions:
- Is my understanding correct that
getUserMediacannot be used to capture webpage screenshot? - What other alternatives i can use to capture the webpage screenshot?
Thanks.