Chrome: navigator.mediaDevices.getUserMedia is not a function

前端 未结 7 1239
长发绾君心
长发绾君心 2021-01-04 00:53

I\'m on localhost and trying to use the MediaDevices.getUserMedia method in Chrome. I receive the error as titled. I understand that in Chrome it is only possible to use thi

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 01:03

    I too had the same problem in my chrome browser. first check your phone is supported by testing it in https://test.webrtc.org/

    if your phone passes all the cases, then check step 2

    step 2: If your hosting a webpage or running a third party webpage,see whether camera permissions are enabled on your phone.

    Also the main issue is WEBRTC is not supported in HTTP site and it is supported only in HTTPS site

    This is the https site which allows web This is the http site which gives a error

提交回复
热议问题