-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createLocalTracks with video device with exact id, exact constraint is not maintained on re-enabling camera #1316
Comments
I have (I think) a better reproduction scenario, 100% reproducible:
Expected result: the selected camera is unmuted Actual result: the default camera is unmuted The issue comes from here:
The constraints are vanished and the browser starts capturing the default video input device. This is a major issue for users who use the second camera and for the apps that use all available video input devices (e.g., medical apps). |
thanks for the report, could you provide some debug logs? |
I gave this a shot in #1388, could you please test with that branch and see if it resolves the issue for you? |
Describe the bug
Constraining the
deviceId
withexact
on Track creation.Expectation: internally
getUserMedia
is called withexact
the first time, and should be called again on restart (e.g. unmute of camera).What happens: internally
getUserMedia
is called withexact
the first time, but on unmute theexact
constraint is removed resulting in selecting a different video stream (from a different device) on unmute (tested in Chrome).Where I think the issue is: https://github.com/livekit/client-sdk-js/pull/773/files
Why is the browser returning a different stream given it actually returned it correctly the first time: I don't know (this is where the whole getUserMedia madness starts).
Reproduction
localParticipat.setCameraEnabled(false)
exact
Note: it happens under specific circumstances (hard to reproduce on some clients, reproducible with others - e.g. with a different set of devices).
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: