How to allow Chrome to access my camera on localhost?

前端 未结 9 2173
庸人自扰
庸人自扰 2020-11-29 03:10

I cloned a project about real-time image processing on a web browser from this link: Then I could not allow my browser to access my camera. I got this javascript alert:

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 03:19

    Chrome now only allows https:// servers to persistent list (version 39.xx)

    https://support.google.com/chrome/answer/2693767?hl=en

    Allow: This allows the site to access your camera and microphone at this time and a notification will appear confirming that you’ve granted access. If you select Allow on a "http" URL your preference will not be remembered in future visits. If you select Allow on a "https" URL, your preference will be remembered in future visits.

    Maybe this link helps to set your local secure server if you are using Wamp. http://forum.wampserver.com/read.php?2,32986

    Then you can add your local server to persistent allow list of chrome.

提交回复
热议问题