Chrome getUserMedia Not Requesting Permission Locally

前端 未结 5 657
轻奢々
轻奢々 2020-11-29 10:11

I\'m attempting to play around with navigator.getUserMedia in Chrome; however, it is not requesting permission when served locally (file:///whatever/index.html), but does on

5条回答
  •  借酒劲吻你
    2020-11-29 10:46

    Chrome blocks a lot of stuff on file:/// URIs without reporting a security error (eg. Geolocation). Your best option is to run from a local webserver, if you have Python installed try SimpleHTTPServer.

提交回复
热议问题