Mechanical shutter in msdk 5
已完成hey,
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)
}
})
请先登录再写评论。
评论
1 条评论