KeyManager.getInstance().addListener监听焦距
已完成如何拿到实时的焦距4.16.2
-
监听这个CameraKey.HYBRID_ZOOM_FOCAL_LENGTH,代码参考: DJISDKManager.getInstance().getKeyManager().addListener(CameraKey.createKey(CameraKey.HYBRID_ZOOM_FOCAL_LENGTH), new KeyListener() { @Override public void onValueChange(@Nullable Object o, @Nullable Object o1) { Log.d(TAG, "onValueChange: old focal_length:"+((int)o)+"new focal_length"+((int)o1)); } });
请先登录再写评论。
评论
7 条评论