mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 12:18:25 +00:00
Making sure we never invert the contact's landscape rotation
This commit is contained in:
parent
1f5fad91b2
commit
c0fd2eb937
@ -61,6 +61,7 @@ import org.webrtc.SurfaceViewRenderer
|
||||
import java.nio.ByteBuffer
|
||||
import java.util.ArrayDeque
|
||||
import java.util.UUID
|
||||
import kotlin.math.abs
|
||||
import org.thoughtcrime.securesms.webrtc.data.State as CallState
|
||||
|
||||
class CallManager(
|
||||
@ -718,7 +719,7 @@ class CallManager(
|
||||
|
||||
// apply the rotation to the streams
|
||||
peerConnection?.setDeviceRotation(rotation)
|
||||
remoteRotationSink?.rotation = rotation
|
||||
remoteRotationSink?.rotation = abs(rotation) // abs as we never need the remote video to be inverted
|
||||
}
|
||||
|
||||
fun handleWiredHeadsetChanged(present: Boolean) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user