[MSDK V5] CameraFocusMode AFC setValue Error

已完成

评论

6 条评论

  • DJI Developer Support
    What is the interface and parameters you call? Can you send me the corresponding code?
    0
    评论操作 固定链接
  • TaeHyunKim
    Hardcoded CameraFocusMode as AFC for test code

    private val key = CameraKey.KeyCameraFocusMode.create()

    KeyManager.getInstance()
    .setValue(key, CameraFocusMode.AFC, object : CommonCallbacks.CompletionCallback {
    override fun onSuccess() {
    Timber.d(" CameraKey.KeyCameraFocusMode Success")
    }

    override fun onFailure(error: IDJIError) {
    Timber.d("CameraKey.KeyCameraFocusMode Fail : $error")
    }
    })
    0
    评论操作 固定链接
  • DJI Developer Support
    Please set the value according to the document requirements ![](https://djisdksupport.zendesk.com/attachments/token/rcFXYaINssi7VQMv1sQtUj1fm/?name=image.png)
    -1
    评论操作 固定链接
  • TaeHyunKim

    I did the same as the dji documentation, but AFC mode does not work.

    Even if you check the dji smaple source, AFC mode does not apply.

    Even if you check "CameraKey.KeyIsAFCSupported" in H20 camera zoom mode, it still comes out as false

    I think it's a DJI bug, please check

     

    private val cameraFocusModeKey = KeyTools.createCameraKey(CameraKey.KeyCameraFocusMode, ComponentIndexType.LEFT_OR_MAIN, CameraLensType.CAMERA_LENS_ZOOM)

    KeyManager.getInstance()
    .setValue(cameraFocusModeKey, CameraFocusMode.AFC, object : CommonCallbacks.CompletionCallback {
    override fun onSuccess() {
    Timber.d(" CameraKey.KeyCameraFocusMode Success")
    }

    override fun onFailure(error: IDJIError) {
    Timber.d("CameraKey.KeyCameraFocusMode Fail : $error")
    }
    })
    0
    评论操作 固定链接
  • TaeHyunKim

    please check

    0
    评论操作 固定链接
  • tech

    Have you managed to solve the problem?

    0
    评论操作 固定链接

请先登录再写评论。