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

后端 未结 4 2041
余生分开走
余生分开走 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:40

    Unfortunately it is still a requirement for you to preview onto a valid surface in order to record video (Android SDK 1.6 thru 2.2). There is an enhancement request logged to remove this restriction http://code.google.com/p/android/issues/detail?id=9570

提交回复
热议问题