Record video and return home button not working with a custom app on Mavic 3 RC

评论

3 条评论

  • DJI Developer Support
    Could you please inform me about the drone model and remote controller model you are using? Additionally, can you confirm if the sample code provided is compatible with these widgets? Thank you.
    0
    评论操作 固定链接
  • T

    Thank you for your reply. I'm using the DJI Mavic 3T Enterprise with an RC PRO. I've tested it with the sample code, and the buttons on the RC work. In that case, should I include the relevant widgets in my custom app? 

    0
    评论操作 固定链接
  • DJI Developer Support
    I understand your issue. One possible solution is to use the corresponding component. Inside the component, there are listeners set up for taking photos and recording with the remote control. When the button press status is detected, the component will actively call the corresponding interface. Here is the listening logic inside the component. override fun inSetup() { bindDataProcessor(RemoteControllerKey.KeyShutterButtonDown.create(), isShutterButtonDownProcessor) bindDataProcessor(RemoteControllerKey.KeyRecordButtonDown.create(), isRecordButtonDownProcessor)}
    0
    评论操作 固定链接

请先登录再写评论。