How to capture video in Android?

后端 未结 7 417
天命终不由人
天命终不由人 2020-12-07 15:52

I would like to create a video recorder and so far haven\'t figured out how to set parameters in order to successfully go through MediaRecorder.prepare() method.

Exe

7条回答
  •  萌比男神i
    2020-12-07 16:35

    I am exactly answering this question in the following tutorial: http://integratingstuff.wordpress.com/2010/10/18/writing-code-that-captures-videos-on-android/

    The reason why your code is failing on prepare() is because you didn't set all the necessary properties. For example, you also need to set maxDuration.

提交回复
热议问题