fix(android): do not change camera rotation while video is being recorded (#2187)
This commit is contained in:
parent
1168ac95a7
commit
963c249399
@ -557,7 +557,7 @@ class Camera1 extends CameraViewImpl implements MediaRecorder.OnInfoListener,
|
||||
return;
|
||||
}
|
||||
mDeviceOrientation = deviceOrientation;
|
||||
if (isCameraOpened() && mOrientation == Constants.ORIENTATION_AUTO) {
|
||||
if (isCameraOpened() && mOrientation == Constants.ORIENTATION_AUTO && !mIsRecording) {
|
||||
mCameraParameters.setRotation(calcCameraRotation(deviceOrientation));
|
||||
mCamera.setParameters(mCameraParameters);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user