Fix camera state after screen sharing

This commit is contained in:
Jim Gustafson
2025-05-06 20:34:40 -07:00
committed by GitHub
parent f647504a64
commit 2cee9b8627

View File

@@ -1406,6 +1406,9 @@ export class CallingClass {
secretParams,
});
// Set the camera disposition as we transition from the lobby to the group call.
this.#cameraEnabled = hasLocalVideo;
groupCall.setOutgoingAudioMuted(!hasLocalAudio);
groupCall.setOutgoingVideoMuted(!hasLocalVideo);
drop(this.enableCaptureAndSend(groupCall, undefined, logId));
@@ -1768,6 +1771,9 @@ export class CallingClass {
adminPasskey,
});
// Set the camera disposition as we transition from the lobby to the call link call.
this.#cameraEnabled = hasLocalVideo;
groupCall.setOutgoingAudioMuted(!hasLocalAudio);
groupCall.setOutgoingVideoMuted(!hasLocalVideo);
drop(this.enableCaptureAndSend(groupCall));