How can I record a Video in my Android App.?

后端 未结 10 1717
后悔当初
后悔当初 2020-11-22 11:34

How can I capture a video recording on Android?

10条回答
  •  Happy的楠姐
    2020-11-22 12:22

    As a side note - there seems to be a bug in the Android API or faulty documentation or maybe I am just plain stupid. The google docs clearly states the following:

    Note: Starting with Android 4.0 (API level 14), the Camera.lock() and Camera.unlock() calls are managed for you automatically.

    See: http://developer.android.com/guide/topics/media/camera.html

    This does not seem to be the case!

    After batteling for literaly days without any success and many little problems like "failed to start" kinda errors I decided to manually implement the locking and BAM! everything worked fine.

    Im using the genymotion emulator for a 4.1.1 device with a min sdk of 14.

提交回复
热议问题