mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-14 23:18:43 +00:00
Back camera mirror fix.
This commit is contained in:
@@ -64,6 +64,7 @@ import org.thoughtcrime.securesms.contacts.avatars.ProfileContactPhoto
|
||||
import org.thoughtcrime.securesms.events.CallParticipant
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.recipients.rememberRecipientField
|
||||
import org.thoughtcrime.securesms.ringrtc.CameraState
|
||||
import org.webrtc.RendererCommon
|
||||
|
||||
/**
|
||||
@@ -191,7 +192,7 @@ fun SelfPipContent(
|
||||
Box(modifier = modifier) {
|
||||
VideoRenderer(
|
||||
participant = participant,
|
||||
mirror = true,
|
||||
mirror = participant.cameraDirection == CameraState.Direction.FRONT,
|
||||
modifier = Modifier.fillMaxSize()
|
||||
)
|
||||
|
||||
|
||||
@@ -464,7 +464,7 @@ private fun LargeLocalVideoRenderer(
|
||||
participant = localParticipant,
|
||||
renderInPip = false,
|
||||
raiseHandAllowed = false,
|
||||
mirrorVideo = true,
|
||||
mirrorVideo = localParticipant.cameraDirection == CameraState.Direction.FRONT,
|
||||
showAudioIndicator = false,
|
||||
onInfoMoreInfoClick = null,
|
||||
modifier = modifier
|
||||
|
||||
Reference in New Issue
Block a user