NotReadableError: Failed to allocate video stream

I get this error in Firefox 51 when I try to execute the following code, and when I select my camera for a laptop:

navigator.getMedia = (navigator.getUserMedia ||
  navigator.webkitGetUserMedia ||
  navigator.mediaDevices.getUserMedia ||
  navigator.msGetUserMedia);

navigator.getMedia({
    video: true,
    audio: false
  },
  function(stream) {
    if (navigator.mozGetUserMedia) {
      video.mozSrcObject = stream;
    } else {
      var vendorURL = window.URL || window.webkitURL;
      video.src = vendorURL.createObjectURL(stream);
    }
    video.play();
  },
  function(err) {
    console.log("An error occured! " + err);
  }
);

Mistake:

NotReadableError: Failed to allocate videosource

Can someone clarify what this means? Is my webcam broken? Yesterday I used it with a script without any problems. It does not stand out for another application.

+16
source share
5 answers

NotReadableError- this is a bug that complies with the specification, NotReadableErrorFirefox, when access to the webcam is allowed but not possible.

Windows, - . Firefox Windows, Mac, Windows -.

:

, , -, .

Chrome TrackStartError. . Chrome .

: getUserMedia().

+18

, , - (, ). , , , , ...

+4

- , ? - ? . .

!

! beforeunload, event.preventDefault event.preventDefault .

event.preventDefault - .

0

Windows 10, , , . , Windows 10 Settings-> ( ) ( /), . , , .

0

getUserMedia() error: NotReadableError Chromium, - Firefox. , WebRTC, getUserMedia , Chromium.

, Chromium/Chrome. WebRTC .

, -, , - Chromium/Chrome.

, -/.

0

All Articles