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

Completed

Comments

3 comments

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

Please sign in to leave a comment.