Disable video mirroring for screen share preview in calls.

This commit is contained in:
Cody Henthorne
2026-06-03 09:23:52 -04:00
committed by Alex Hart
parent 85d60dd0da
commit b732cbe00b
3 changed files with 3 additions and 3 deletions
@@ -190,7 +190,7 @@ fun SelfPipContent(
Box(modifier = modifier) {
VideoRenderer(
participant = participant,
mirror = participant.cameraDirection == CameraState.Direction.FRONT,
mirror = !participant.isScreenSharing && participant.cameraDirection == CameraState.Direction.FRONT,
modifier = Modifier.fillMaxSize()
)
@@ -543,7 +543,7 @@ private fun LargeLocalVideoRenderer(
participant = localParticipant,
renderInPip = false,
raiseHandAllowed = false,
mirrorVideo = localParticipant.cameraDirection == CameraState.Direction.FRONT,
mirrorVideo = !localParticipant.isScreenSharing && localParticipant.cameraDirection == CameraState.Direction.FRONT,
showAudioIndicator = false,
onInfoMoreInfoClick = null,
modifier = modifier
@@ -75,7 +75,7 @@ fun PictureInPictureCallScreen(
renderInPip = true,
raiseHandAllowed = false,
onInfoMoreInfoClick = null,
mirrorVideo = isFullScreenLocalParticipant,
mirrorVideo = isFullScreenLocalParticipant && !fullScreenParticipant.isScreenSharing,
modifier = Modifier.fillMaxSize()
)