请问Android M300广角怎么获取焦距数据
Completed广角也是与变焦一样这样获取吗?
先切换成广角
CameraManager.getCamera().setCameraVideoStreamSource(CameraVideoStreamSource.WIDE, djiError -> {
if (djiError == null) {
EventBus.getDefault().post("广角");
} else {
ToastUtil.show(requireActivity(), "相机模式切换失败");
}
});
再这样调用吗,获取焦距
camera.getLens(0).getHybridZoomFocalLength(new CommonCallbacks.CompletionCallbackWith<Integer>() {
@Override
public void onSuccess(Integer zoomLen) {
callback.onCallback(true, zoomLen);
}
@Override
public void onFailure(DJIError djiError) {
if (djiError != null) ALog.e(DJI, null, "isHybridZoomSupported" + djiError);
callback.onCallback(false, 0);
}
});
Please sign in to leave a comment.
Comments
1 comment