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
169 stars 80 forks source link

How to test "Android-VideoStreamDecodingSample" project? #6

Closed jamesxienctu closed 6 years ago

jamesxienctu commented 7 years ago

Hi, all: I have finished making "Android-VideoStreamDecodingSample" project, but I don't know how to test it. My questions are as follows:

  1. Is "Android-VideoStreamDecodingSample" project a Android app?

  2. I use Android Test to test this project, but it shows a error message and then the app is immediately closed. The error message is as follows: https://drive.google.com/file/d/0B726Quay7lRDSVE0TjFBNGgyTkk/view?usp=sharing

  3. How can I test this project to watch if it is correct?

Please help answer them, thank you.

oliverou commented 7 years ago

Hi @jamesxienctu, you can build and install the sample project to your Android device and connect to DJI Product for testing, please check the following steps:

  1. Follow the instructions in README file of the Github sample to install Git LFS and use git clone command to pull the whole sample project;
  2. Open the sample project in Android Studio you may see the following screenshot: screen shot 2017-01-26 at 11 30 24 am
  3. Open the AndroidManifest.xml file and enter the App Key you apply on DJI Developer Website:
        <meta-data
            android:name="com.dji.sdk.API_KEY"
            android:value="Please enter your App Key here."/>
  4. Then build and run the project on your Android device and test it.

For more details, please check the Run Application documentation.