I use the library to record and view bullseye videos. So the image when recording is normal, that is, without mirroring. But when viewing it is already a mirror.
A piece of code where the recording goes
@Override public boolean onTouch(View view, MotionEvent motionEvent) { switch (motionEvent.getAction()) { case MotionEvent.ACTION_DOWN: if (!isRecording) { if (prepareVideoRecorder()) { mMediaRecorder.start(); isRecording = true; progressTimer = new ProgressTimer(timerProgress * 100, 100); progressTimer.start(); isVideoRecorded = true; } else { releaseMediaRecorder(); } } break; case MotionEvent.ACTION_UP: if (isRecording) { mMediaRecorder.stop(); // stop the recording releaseMediaRecorder(); // release the MediaRecorder object mCamera.lock(); // take camera access back from MediaRecorder isRecording = false; progressTimer.cancel(); } break; } return false; } Tried
mMediaRecorder.setorientationHint(0) ;
mMediaRecorder.setorientationHint(270)
Sick! How to solve it?
MediaRecordercase. Why thenif (isFrontCam) { mMediaRecorder.setOrientationHint(270); } else mMediaRecorder.setOrientationHint(90);if (isFrontCam) { mMediaRecorder.setOrientationHint(270); } else mMediaRecorder.setOrientationHint(90);does not solve? - DevOma