Cloud API does not stay connected
已完成Hello,
How can I control the "logged in" state on the remote controller ? For the moment, if I connect (by clicking 'Open Platforms' and entering my url) it does work, but as soon as I click on top-left arrow the remote controller is disconnected. What is preventing the connection ?
I'm not using the DJI sample, in the HTML I just verify the license, set the platform information and then load the component 'thing'.
-
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 -
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!
-
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 -
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
请先登录再写评论。
评论
5 条评论