简体   繁体   中英

How to take screenshot using getUserMedia(); API in javascript

So, I have to take screenshot of screen and draw it on a canvas, I have read that it can be done using js navigator.mediaDevices.getUserMedia() API but cant find its correct uses.

Please help

There is a complete walk through of your use case here:

https://www.html5rocks.com/en/tutorials/getusermedia/intro/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM