Mechanical shutter in msdk 5
Completedhey,
I have tried to enable the mechanical shutter using this code:
KeyManager.getInstance().setValue(
KeyTools.createCameraKey(CameraKey.KeyMechanicalShutterEnable,
ComponentIndexType.LEFT_OR_MAIN, CameraLensType.CAMERA_LENS_DEFAULT), true,
object : CommonCallbacks.CompletionCallback {
override fun onSuccess(){
promise.resolve(true)
}
override fun onFailure(error: IDJIError) {
promise.resolve(false)
}
})
but I gets this error in compilation: Unresolved reference: KeyMechanicalShutterEnable
what I am doing wrong?
I imported the CameraKey using:
import dji.sdk.keyvalue.key.CameraKey
for other keys it works well, for example:
Please help me, I have no idea what I am doing wrong..
but I gets this error in compilation: Unresolved reference: KeyMechanicalShutterEnable
what I am doing wrong?
I imported the CameraKey using:
import dji.sdk.keyvalue.key.CameraKey
for other keys it works well, for example:
KeyManager.getInstance().setValue(
KeyTools.createCameraKey(CameraKey.KeyPhotoFileFormat,
, PhotoFileFormat.JPEG,ComponentIndexType.LEFT_OR_MAIN,
CameraLensType.CAMERA_LENS_DEFAULT)
object : CommonCallbacks.CompletionCallback {
override fun onSuccess(){
promise.resolve(true)
}
override fun onFailure(error: IDJIError) {
promise.resolve(false)
}
})
Please sign in to leave a comment.
Comments
1 comment