question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MediaStreamError in Firefox

See original GitHub issue

Resume I am testing the compatibility of my web application and found an error that is only happening in Firefox. The error happens even in the demo

Expected Functionality Scan the qr code through the init event

Actual Functionality The camera is not being loaded on the page, even after granting permission, both on localhost and in production

Error Report

MediaStreamError : {
      constraint: "",
      message: "Starting video failed",
      name: "AbortError"
 }

Screenshots Demonstration lib-qrcode-reader MyApp Error Console console-myapp

Desktop:

  • (Ubuntu 18.04LTS): Firefox 79.0

Note I am using version ^ 2.3.11, before that I was using version ^ 2.1.1 and he pointed out the following error:

TypeError: s()(...)[0].getCapabilities is not a function

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
1995Evertoncommented, Aug 7, 2020

Yes, worked perfectly, thank you very much!

Screenshots Captura de tela de 2020-08-07 11-15-55

0reactions
gruhncommented, Aug 7, 2020

You’re absolutely right. Please check if this resolves your isssue:

npm i vue-qrcode-reader@2.3.12-alpha.1
Read more comments on GitHub >

github_iconTop Results From Across the Web

navigator.mediaDevices.getUserMedia({video:true}) throws ...
getUserMedia({video:true}) throws MediaStreamError ... (Firefox :: Untriaged, defect) ... Was able to capture the stream from the camera at Firefox 69.
Read more >
AbortError Starting video failed returned from getUserMedia ...
In Firefox, navigate to the webpage from the attachment again. MediaStreamError - AbortError - Starting video failed - will display in the console,...
Read more >
Navigator.getUserMedia() - Web APIs | MDN
... condition occurs, the error callback is executed with a MediaStreamError object describing what went wrong. ... Firefox for Android24.
Read more >
OverconstrainedError - Web APIs - MDN Web Docs
Chrome Edge OverconstrainedError Full support. Chrome63. Toggle history Full support. Ed... OverconstrainedError() constructor Full support. Chrome63. Toggle history Full support. Ed... constraint Full support. Chrome63. Toggle...
Read more >
MediaDevices.getUserMedia() - Web APIs | MDN
The MediaDevices.getUserMedia() method prompts the user for permission to use a media input which produces a MediaStream with tracks ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found