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?

  • in fact, the video does not show , but is recorded as a mirror image. - Vladyslav Matviienko
  • So in the MediaRecorder case. Why then if (isFrontCam) { mMediaRecorder.setOrientationHint(270); } else mMediaRecorder.setOrientationHint(90); if (isFrontCam) { mMediaRecorder.setOrientationHint(270); } else mMediaRecorder.setOrientationHint(90); does not solve? - DevOma
  • I don't know, just correcting your wording after I read it. It will be correct to write in the title that the video is not recorded correctly, because now everything looks like this, that you have problems not with the recording, but with the video playback. - Vladyslav Matviienko
  • Aa good, I will correct ... - DevOma

0