Using multiple cameras simultaneously

Hello, is there a way i can simultaneously access 2 cameras using getusermedia in the electron. i try to stream by calling getusermedia twice but the stream comes only from one camera even though it takes deviceId of other camera.

I am not even able to swap between cameras in the app but was successful in browser.

Any Help will be appreciated.
Thanks :slight_smile:

Issue resolved.

Rather than using functions with the stream. hardcode when u get the stream from getUserMedia.
Also Use the ‘exact’ keyword with the deviceId.
This topic can be closed now.


Did you manage to get it like this ?
video: true ,
deviceId: {
exact: device.deviceId

In chrome i wasnt able to do it, and i want to know using electron framework & compiling as app will do the trick.