NotReadableError: Failed to allocate videosource

前端 未结 7 1559
逝去的感伤
逝去的感伤 2020-12-30 22:57

I get this error in Firefox 51 when I try to execute the following code and when I select my laptop\'s camera:

navigator.getMedia = (navigator.getUserMedia |         


        
7条回答
  •  不思量自难忘°
    2020-12-30 23:29

    The message getUserMedia() error: NotReadableError was displayed for Chromium but not Firefox web browser. I also noticed that WebRTC examples using getUserMedia function without microphone access worked correctly in Chromium.

    In fact, I had to make sure my microphone is enabled and select the correct microphone in Chromium / Chrome settings. Then WebRTC with audio and video access worked correctly.

    If it is not a microphone problem, it may also be a webcam problem so you have to make sure your webcam is enabled and selected correctly in Chromium / Chrome settings.

    Note that only one app at a time can use the webcam / microphone.

提交回复
热议问题