Enabling Camera Flash While Recording Video

前端 未结 4 463
遇见更好的自我
遇见更好的自我 2021-02-05 02:46

I need a way to control the camera flash on an Android device while it is recording video. I\'m making a strobe light app, and taking videos with a flashing strobe light would r

4条回答
  •  醉话见心
    2021-02-05 03:33

    After preparing media recorder, use camera.lock(), and then set whatever parameters you want to set to camera. But before starting recording you need to call camera.unlock(), and after you stop media recorder you need to call camera.lock() to start preview. Enjoy!!!

提交回复
热议问题