Android: record video with “continuous” auto-focus

前端 未结 2 1833
挽巷
挽巷 2021-02-03 14:39

I work on video recording; everything works except for requesting continuous focus. This is what I do (tried both in surfaceCreated and surfaceChanged with no success):

2条回答
  •  無奈伤痛
    2021-02-03 15:00

    Ok, I have sort of solution to this problem: I was able to manually focus camera calling Camera#autoFocus(...).

    This still has serious issues. First, calling autofocus while shooting video is not working on some Samsung devices. Also it's not a good idea to force your users to manually focus the camera during video recording.

    So if you were able to normally focus your videos while recording - your advice would be very helpful.

提交回复
热议问题