DJI-Mobile-SDK-Tutorials / Android-VideoStreamDecodingSample

This sample project demonstrates how to use FFmpeg for video frame parsing and to use MediaCodec for hardware decoding on DJI Products.
MIT License
170 stars 81 forks source link

showToast "disconnected" #13

Closed hexray-newbee closed 6 years ago

hexray-newbee commented 7 years ago

Run this sample on Huawei Tablet connected to remote controller of Phantom 4, the app shows "disconnected". Running DJIGo on it works well.

Michael-DJI commented 7 years ago

@hxl-dy Please provide the following infos for us to help investigate the issue:

hexray-newbee commented 7 years ago

if found it works when aircraft and controller both power on, but it failed when only controller power on. Android 5.1.1 on Huawei Tablet PLE-703L

Michael-DJI commented 7 years ago

@hxl-dy that's normal, "disconnected" is a hint message for the disconnect state of the drone

hexray-newbee commented 7 years ago

but in the code, it has three state:

  1. Connected (both product and controller are running well )
  2. only RC Connected (only controller connected )
  3. Disconnected (neither product nor controller can be connected )

why the second state never show?

dji-dev commented 6 years ago

Hi there, The second state is an app logic that uses SDK with other data to conclude. This sample app only to show how to decode video. I have created this gist to show an example on how to use SDK to get "RC connected" state. https://gist.github.com/dji-dev/aabe8e204b326394aeb8930653610ce5 This is not related to this sample app so I will close this issue now.