Mechanical Shutter Setting in MSDKv5

Completed

Comments

2 comments

  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.