Error getting userMedia, error = NotReadableError:Could not start video source
See original GitHub issueDescribe 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:
- Created a year ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s working now! Thank you very much Robert.
{ facingMode: “environment” } must be in the config, then choose the camera ID of your back camera.