RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

When and where getUserMedia is called ?

Open xrei opened this issue 3 years ago • 1 comments

At which point the method navigator.mediaDevices.getUserMedia is called internally ? is there any way to catch error of this internal call and do something on success and error callbacks ? If not, is there a way to call it manually and attach incoming stream to connection?

What i want is open room and establish all sockets only after user has granted permissions to camera + microphone.

xrei avatar Oct 13 '20 00:10 xrei

Yes now, this provokes a bug in Android Chromium >=85.x. (black screen)

The getUserMedia is called when you execute .openOrJoin, I don't know if is possible to avoid this behavior by replacing with a manual getUserMedia.

In fact, I see that this bad behavior is by bad constraints but also this not returns an error, because Muaz modifies the MediaStream object with other data after getUserMedia.

EDIT

I see that in connection.getUserMedia is using the getUserMedia, but you can avoid this set dontCaptureUserMedia param like this:

connection.dontCaptureUserMedia = true;

matiaslopezd avatar Oct 29 '20 23:10 matiaslopezd