Mechanical Shutter Setting in MSDKv5

已完成

评论

2 条评论

  • DJI Developer Support
    You can try CameraKey.KeyMechanicalShutterEnable to turn on the mechanical shutter. Before using it, you need to determine if it is supported by KeyIsMechanicalShutterSupported.
    1
    评论操作 固定链接
  • Dor Ivanir

    Hey I have tried your suggestion:

     KeyManager.getInstance().setValue(
                KeyTools.createCameraKey(
                    CameraKey.KeyMechanicalShutter, ComponentIndexType.LEFT_OR_MAIN, CameraLensType.CAMERA_LENS_DEFAULT), true,
                    object : CommonCallbacks.CompletionCallback {
                    override fun onSuccess(){
                        promise.resolve("ev done")
                        Log.i("Success", "")
                        }
                    override fun onFailure(error: IDJIError) {

                    }
                    })
    But got this error in compilation:
    Unresolved reference: KeyMechanicalShutterEnable.
    I imported the CameraKey object:
    import dji.sdk.keyvalue.key.CameraKey
    please help me
    I don't find this KeyMechanicalShutterEnable in the documentation as well

    0
    评论操作 固定链接

请先登录再写评论。