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.

Error getting userMedia, error = NotReadableError:Could not start video source

See original GitHub issue

Describe the bug I think this is the same error as reported in #38. In my samsung S7 running android 8 this error appears when I execute start() quickly after getCameras(). The same does not happen in my oneplus 6 running android 11.

I call getCameras() only to ask permission. I don’t use the cameraID’s, if there’s a better way to ask permission I would appreciate.

To Reproduce Steps to reproduce the behavior: Run getCameras() and start() in quick sucession in a low end android phone

Desktop (please complete the following information):

  • OS: Android
  • Browser: Chrome

Smartphone (please complete the following information):

  • Device: Samsung S7
  • OS: Android 8
  • Browser Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
mpn7commented, Jun 22, 2022

It’s working now! Thank you very much Robert.

0reactions
ROBERT-MCDOWELLcommented, Jun 21, 2022

{ facingMode: “environment” } must be in the config, then choose the camera ID of your back camera.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix this error : NotReadableError: Could not start video ...
You need to stop the previous mediaStreamObj before calling getUserMedia again. This happens when your other(front/back) is already in use.
Read more >
Video Error , error = Error getting userMedia, error ... - GitHub
See error Video Error , error = Error getting userMedia, error = NotReadableError:Could not start video source. To avoid the NonReadableError.
Read more >
NotReadableError: could not start video source - Google Groups
In the first case I think navigator.mediaDevices.getUserMedia would fail immediately, the user won't see the authorization dialog. I am not really sure how...
Read more >
Share a Webcam - Blindside Networks Customer Support Portal
If you are receiving the message “The webcam is in use by another application” or “NotReadableError: Could not start video source” check ...
Read more >
Navigator.getUserMedia() - Web APIs | MDN
If permission is granted, a MediaStream whose video and/or audio tracks come from ... If the user instead doesn't make a choice at...
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