RTCMultiConnection
RTCMultiConnection copied to clipboard
When and where getUserMedia is called ?
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.
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;