Skip to content

Commit

Permalink
android: set rotation flag on frames sent to AVS
Browse files Browse the repository at this point in the history
  • Loading branch information
c-g-owen committed Oct 13, 2021
1 parent 2235ae2 commit cf4934b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/java/com/waz/avs/VideoCapturer.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public int getRotation() {
if (camera == null || cameraInfo == null)
return 0;

return (360 - cameraInfo.orientation) % 360;
return (360 - (cameraInfo.orientation + ui_rotation)) % 360;
}

public void setUIRotation(int rotation) {
Expand Down

0 comments on commit cf4934b

Please sign in to comment.