Cloud API does not stay connected

Completed

Comments

5 comments

  • DJI Developer Support
    Dear developers, Hello, thank you for contacting DJI Innovation. From your description, it may be related to a question: Cause: When you click the back key in the upper left corner of the webview page, the interface callback will be triggered. If the return value is true, DJI Pilot2 will not process it. If this function is false or not implemented, DJI Pilot2 will exit the webview page, the effect will be the same as the remote control physical return button. window.djiBridge.onBackClick = () => { // return true} In addition, you are advised to use the official demo for deployment I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support
    0
    Comment actions Permalink
  • Th Lsct

    Hi,

    I think I found it: you have to set the workspace id. It does not seem to be related to window.djiBridge.onBackClick.

    I do not know what the workspace id means, but if you don't set it, the cloud api is disconnected on the back click.

    Can you ask the DJI development team to add some documentation ? BTW, can you also add some documentation on exactly what codec is used for RTMP/RTSP live stream ?

    Thank you, and have a nice day!

    0
    Comment actions Permalink
  • DJI Developer Support
    Dear developers, Hello, thank you for contacting DJI Innovation. workspace_id usually refers to the unique identifier of the workspace. It is used to identify and distinguish different workspaces so that they can be accurately located to specific workspaces for device management, task assignment, and data processing. For example, in the route management function, workspace_id is used to create route tasks and get a list of device topologies but as soon as I click on top-left arrow the remote controller is disconnected. What is preventing the connection ? ==》 Is the problem encountered in the process of going to the cloud, is there a video of this process? Supplementary documentation issues will be communicated to the relevant departments I hope our solution can help you, thank you for your email, wish you a happy life! Best Regards, DJI DJI innovation SDK technical support
    1
    Comment actions Permalink
  • Th Lsct

    Thank you for your answer.

    I did not find a documentation page explaining what a "workspace" really is. Can you add one ?

    Thank you and have a nice day !

    0
    Comment actions Permalink
  • DJI Developer Support
    Dear developers, Hello, thank you for contacting DJI Innovation. At present, I am responsible for the technical support of the cloud API, so I have no permission to write the official document, but I will give you upward feedback on your request, and I am really sorry for the trouble caused to you. Thank you for your understanding and support, I wish you a happy life! Best Regards, DJI DJI innovation SDK technical support
    1
    Comment actions Permalink

Please sign in to leave a comment.