diff --git a/android/java/com/waz/avs/VideoCapturer.java b/android/java/com/waz/avs/VideoCapturer.java index 35d4d925f..8f48d7821 100644 --- a/android/java/com/waz/avs/VideoCapturer.java +++ b/android/java/com/waz/avs/VideoCapturer.java @@ -548,26 +548,6 @@ public void onPreviewFrame(byte[] frame, Camera cam) { // camera.addCallbackBuffer(frame); } - public int getViewRotation() { - if (camera == null || cameraInfo == null) - return 0; - - Log.d(TAG, "getViewRotation: camrot: " + cameraInfo.orientation + - " facing: " + cameraInfo.facing); - - switch (cameraInfo.facing) { - case CameraInfo.CAMERA_FACING_BACK: - return cameraInfo.orientation; - - case CameraInfo.CAMERA_FACING_FRONT: - return (360 - cameraInfo.orientation) % 360; - - default: - return 0; - } - } - - public int getRotation() { if (camera == null || cameraInfo == null) return 0; @@ -577,7 +557,7 @@ public int getRotation() { return (360 + ui_rotation - cameraInfo.orientation) % 360; case CameraInfo.CAMERA_FACING_FRONT: - return (360 - (ui_rotation + cameraInfo.orientation)) % 360; + return (720 - ui_rotation - cameraInfo.orientation) % 360; default: return 0;