Chrome returns NotReadableError: Could not start video source even when camera device is available.

3,482 views
Skip to first unread message

Vinayak V Kulkarni

unread,
Mar 2, 2023, 5:27:57 AM3/2/23
to discuss-webrtc
OS Details: Windows 10 Pro
Chrome version: 110.0.5481.178 (Official Build) (64-bit) (cohort: Stable)

List of video input devices present
1. Integrated Webcam (0bda:5540) (Default camera)
2. Webcam C170 (046d:082b) (External USB WebCam)

Case1: Integrated Webcam is used by another browser (Microsoft Edge) and External WebCam is available. Chrome requests mediastream with getUserMedia call with video constraints
video:{width:{ideal:1280}, height:{ideal:720}}
We get NotReadableError with message DOMException: Could not start video source
When Chrome requests the media stream with getUserMedia call with a different video constraints
video:{width:{ideal:640}, height:{ideal:480}}
We get the video stream correctly. In these calls, it needs to be noted that ideal  constraints were passed and these need to be treated as optional constraints and should provide a stream with closest matching resolution but the call should not fail.
Please see attached screenshot for details:ss-2.PNG
Case2: WebCam C170 (External webcam) is used by another browser (Microsoft edge) but the In-built camera (Integrated Camera) is available. Chrome tries a getUserMedia call with constraints {audio:true, video:true}
The call fails with  NotReadableError with message DOMException: Could not start video source
In this case, our expectation is Chrome should provide the MediaStream with available device but the request should not fail. (As there are no specific video constraints applied) Please see below screenshot for details:
ss-4.PNG
Can you please let us know if there is any way to work around this issue? Any help to solve this problem is appreciated.
Thanks

Henrik Andreasson

unread,
Mar 2, 2023, 6:53:45 AM3/2/23
to discuss...@googlegroups.com
I would recommend moving this question to https://bugs.chromium.org/p/chromium/issues/entry to get the best possible support.
Add a link to the issue here once done and I'll CC suitable resources.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/99ebcb50-d3ad-4485-8669-923d3f2e0926n%40googlegroups.com.

Vinayak V Kulkarni

unread,
Mar 2, 2023, 10:50:35 AM3/2/23
to discuss-webrtc
Thanks Henrik for your reply
I have raised chromium issue - https://bugs.chromium.org/p/chromium/issues/detail?id=1420908
Reply all
Reply to author
Forward
0 new messages