mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Rotate information according to cameraId.
This commit is contained in:
parent
f4d3e7b816
commit
c451b044cb
1 changed files with 3 additions and 1 deletions
|
|
@ -169,7 +169,9 @@ public abstract class AndroidCameraRecord {
|
|||
}
|
||||
|
||||
protected int rotateCapturedFrame() {
|
||||
if (params.cameraId == 2) {
|
||||
if (params.videoDimensionsInverted) {
|
||||
return 1; // always rotate 90°
|
||||
} else if (params.cameraId == 2) {
|
||||
return 0;
|
||||
} else {
|
||||
return (4 + 1 - displayOrientation) % 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue