Android: How to initialize MediaRecorder without a valid surface for video preview?

后端 未结 4 2039
余生分开走
余生分开走 2020-12-31 12:53

I am building a camera app, where videos are continuously being captured and saved to the SD card. The videos are short (few minutes), and their length are preset with setMa

4条回答
  •  感动是毒
    2020-12-31 13:27

    Are you implementing Surface callbacks?

    Why do you need to initialize MediaRecorder without a valid surface?

    Are you supposed to be recording even when you leave the main activity? or does recording stop before the other acitivty is spawned?

提交回复
热议问题