Capture multiple cameras simultaneously with getUserMedia

619 views
Skip to first unread message

guest271314

unread,
Dec 30, 2020, 10:11:05 PM12/30/20
to discuss-webrtc
Is there a technical reason that multiple cameras cannot be captured with one or more call to getUserMedia({video: true}) and getUserMedia({video: {deviceId: {exact: deviceId}}})?

guest271314

unread,
Dec 30, 2020, 11:17:42 PM12/30/20
to discuss...@googlegroups.com
I read this https://superuser.com/questions/431759/using-multiple-usb-webcams-in-linux used different USB ports instead of the previous test with multiple cameras on one USB hub set width and height constraints to 320 and 240 after getUserMedia() and was able to simultaneously capture both cameras. This does not appear to be an issue with getUserMedia().

On Wed, Dec 30, 2020 at 7:11 PM guest271314 <guest...@gmail.com> wrote:
Is there a technical reason that multiple cameras cannot be captured with one or more call to getUserMedia({video: true}) and getUserMedia({video: {deviceId: {exact: deviceId}}})?

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/rRaZP19tqZA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4c6796e8-5d16-4291-91dd-56847a441e24n%40googlegroups.com.

Silvia Pfeiffer

unread,
Dec 31, 2020, 12:30:32 AM12/31/20
to discuss...@googlegroups.com
You can capture multiple cameras with multiple getusermedia calls indeed.

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/CA%2BsyWAPw5ByeFgaRx4eKCi-Z0k3rnxPKHP9OOVy38abXXHxCGg%40mail.gmail.com.

guest271314

unread,
Dec 31, 2020, 8:34:51 AM12/31/20
to discuss...@googlegroups.com
On Linux, not when the cameras are connected to the same USB hub and the width and height exceed 320x240. "The requested device not found" or "Could not start device" error will be thrown.

Reply all
Reply to author
Forward
0 new messages