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

Which products can be supported by "Android-VideoStreamDecodingSample" project? #7

Closed jamesxienctu closed 6 years ago

jamesxienctu commented 7 years ago

Hi, all: I run the project on my Android device and try to connect to DJI Phantom 3 Professional. But the app shows "No Product Connected".

The message is as follows: https://drive.google.com/open?id=0B726Quay7lRDUGVOc3hqb1NOY0U

My questions are as follows:

  1. Which products can be supported by "Android-VideoStreamDecodingSample" project?

  2. How can I modify this project to make it support DJI Phantom 3 Professional and DJI M100?

Please help answer them, thank you.

lillogoal commented 7 years ago

Are you connected on WIFI of PHANTOM ?

jamesxienctu commented 7 years ago

I run the project on my Android device, and my Android device is connected to remote controller by USB line. Then remote controller is connected to DJI Phantom 3 Professional.

dji-dev commented 7 years ago

Hi @jamesxienctu, the Android Video Stream Decoding Sample supports Phantom 3 Professional. The issue you mention may be due to the default app behavior for a USB Accessory settings of your Android phone. Please check the following FAQ to reset your Android system's default app settings and try again:

How do I reset the default app behavior for a USB Accessory (DJI Product) on Android devices?

How do I reset the default app behavior for a USB Accessory (DJI Product) on Samsung devices?

jamesxienctu commented 7 years ago

I think it should not be the the default app behavior because I can connect to Phantom 3 Professional by other app. https://drive.google.com/file/d/0B726Quay7lRDQlY3dU9ZUEVSYms/view?usp=sharing https://drive.google.com/file/d/0B726Quay7lRDVUdIWmlNUHZYcWs/view?usp=sharing

But this app is strange. Even if it shows "Phantom 3 Professional Connected" underneath, I still can't click Open button and status shows "No Product Connected" https://drive.google.com/file/d/0B726Quay7lRDTmM3TXB5MzhBUkU/view?usp=sharing

Even if it connect to Phantom 3 Professional, after I click Open button, it shows error message. https://drive.google.com/file/d/0B726Quay7lRDUDFiSFRaa0V2cEk/view?usp=sharing https://drive.google.com/file/d/0B726Quay7lRDTmNpeUlrS1d4ZzA/view?usp=sharing

oliverou commented 7 years ago

Hi @jamesxienctu, seems like you have a crash issue when you try this sample app. I have tested it the sample app on Phantom 3 Professional, it works well. To help you investigate the issue, could you send us the crash log of the sample app? And please provide the following infos for us the reproduce the issue:

jamesxienctu commented 7 years ago

Thanks for your help, I have solved the crash issue. But this app still has a problem with connecting to Phantom 3 Professional, I need to try several times to connect, and it has no crash log. My Android system version is Android 5.1. My Android device is Nexus 7. My Android Studio version is 2.2.3.

dji-dev commented 6 years ago

Will go ahead and close this ticket as current version should not have this problem any more. Please feel free to reopen if the problem still exists. Thanks!