- Joined
- Mar 8, 2015
- Messages
- 405
- Reaction score
- 183
The way the video is connected is by calling a simple "connectToDrone", the rest is all handled inside the SDK and we have no control over it including the automatic reconnection. If you want to disconnect from the drone, you call the similar function 'disconnectToDrone', that will reset everything, not just the video connection. Regarding the video itself, all we get access to is a h264 frame buffer via a callback, then we pass it back to the C decoder. Assuming the video callback containing the buffer keeps getting called when there is a problem (it probably isn't), we could potentially as you said compare it with the last frames and see if nothing changed after a certain amount of time. But this sounds like a lot of work for the app to do pretty much constantly, for something that DJI really needs to fix themselves. After all the official app does not have this issue, or at least it happens much less often.
We totally understand how frustrating it is, something must not be playing nice between the sdk and your setup, I personally do not have a lot of video disconnect/reconnect issues, and I am sure I'm not the only one.
We totally understand how frustrating it is, something must not be playing nice between the sdk and your setup, I personally do not have a lot of video disconnect/reconnect issues, and I am sure I'm not the only one.