Skip to content

Commit

Permalink
fix: Do not use detached window for camera source
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisamir98 committed Oct 18, 2024
1 parent 0f86852 commit 0e233d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/media/MediaStreamHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ export class MediaStreamHandler {

const detachedWindow = callState.detachedWindow();
const isInDetachedMode = callState.viewMode() === CallingViewMode.DETACHED_WINDOW;
const useDetachedWindowForScreenSharingSource = isInDetachedMode && detachedWindow !== null;
const useDetachedWindowForScreenSharingSource =
screen === true && video === false && isInDetachedMode && detachedWindow !== null;

if (useDetachedWindowForScreenSharingSource) {
callState.isScreenSharingSourceFromDetachedWindow(true);
Expand Down

0 comments on commit 0e233d5

Please sign in to comment.