Closed il421 closed 5 years ago
I don't know if this the same case as mine, but for me, getCamera()
returns null
. So if it is the case for you as well, it is normal it crashes since setFocusMode(...)
would be applied on a null
object.
By the way, if you have solved this problem, I am interested by your solution.
If your problem was that getCamera()
returns null
: https://github.com/DJI-Mobile-SDK-Tutorials/Android-FPVDemo/issues/34#issuecomment-436585696
Hey,
I need to implement autofocus fo my video app. I use this: camera.getCamera().setFocusMode(SettingsDefinitions.FocusMode.AUTO, null);
where exactly, or at what moment I need to include it.
I tried but my app is crashed after this...
Please help me