When I record video by MediaRecorder, it always records in landscape mode, regardless of real device orientation. How to force MediaRecorder/Camera use real orientation ?
refer to Camera.Parameters.setRotation() for more information.
There is an example there and instead of calling setRotation(rotation) try to call mediaRecorder.setOrientationHint(rotation) when recording video.
1.4m articles
1.4m replys
5 comments
57.0k users