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

Unable to get video data from Mavic 2 via DJICodecManager in SDK 4.8 #46

Open oscarmore2 opened 5 years ago

oscarmore2 commented 5 years ago

I encounter another problem from SDK 4.8. With failure of getting the data from VideoFeeder. I start tried to use CodecManager and implement the interface onYuvDataReceived and register to DJICodecManager instance.

firstly, it works very well in Mavic Pro via .USE can get the data from onYuvDataReceived, and render the Yuv data to texture.

But when I switch the Usb to the Mavic 2, the onYuvDataReceived interface was never call. Any idea which direction I should look on?

Michael-DJI commented 5 years ago

@oscarmore2 hey, what's the feature you were developing if you want to steaming the video to a RTMP server please use the interfaces in LiveStreamManager class here is the sample code: https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/Sample%20Code/app/src/main/java/com/dji/sdk/sample/demo/camera/LiveStreamView.java

oscarmore2 commented 4 years ago

what about 4.8 version