I have managed to get Video capture to work for a custom camera experience (i.e. using MediaRecorder, Camera, SurfaceView, etc.). But if I am recording a video and change the orientation of the device, video capture stops. Is there way to continue the capture after the orientation change? If fact I want the capture to continue no matter how many times the orientation changes. I imagine it might all have to do with savedInstanceState
and saving the file that I pass to mRecorder.setOutputFile(my file)
. If that's correct, what else am I missing? Or is there a more standard way to handle orientation change during video recording? Thanks for any guidance.
Asked
Active
Viewed 1,184 times
2

Katedral Pillon
- 14,534
- 25
- 99
- 199
-
In other words, I need to know how to **append** to an existing video file. – Katedral Pillon Sep 18 '15 at 19:29
-
btw the following is not enough: `android:configChanges="keyboardHidden|orientation|screenSize"` with or without `setContentView`. The default camera on my device handles it seamlessly. I hope someone here can help. – Katedral Pillon Sep 18 '15 at 21:03
-
Perhaps `android:screenOrientation="portrait"`, then detect and handle the orientation change? – fadden Sep 18 '15 at 23:46