How can I capture an image via the user's webcam using getUserMedia?

后端 未结 3 2003
北荒
北荒 2020-12-05 11:45

I want to make a program on the web which will capture an image via the user\'s webcam.

I am using the getUserMedia Web API. Here is my code, but it do

3条回答
  •  醉梦人生
    2020-12-05 12:08

    You can use this working sample

     
    
      
      
      
        

    Take a snapshot of the current video stream

    Click on the Start WebCam button.

    Screenshots :

提交回复
热议问题