summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/VideoModule.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 190cc248a..a1c5cfb25 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -778,6 +778,15 @@ public class VideoModule implements CameraModule,
setFlipValue();
updatePowerMode();
mCameraDevice.setParameters(mParameters);
+
+ AudioManager am = mActivity.getSystemService(AudioManager.class);
+ if (am != null) {
+ int rotation = newOrientation;
+ if (rotation == 90 || rotation == 270) {
+ rotation = (newOrientation + 180) % 360;
+ }
+ am.setParameters("rotation=" + rotation);
+ }
}
mUI.tryToCloseSubList();
mUI.setOrientation(newOrientation, true);