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

Deprecation warnings in DJIVideoStreamDecoder #71

Open neilyoung opened 3 years ago

neilyoung commented 3 years ago
> Task :app:compileDebugJavaWithJavac
/android-videostreamdecodingsample/app/src/main/java/com/dji/videostreamdecodingsample/media/DJIVideoStreamDecoder.java:528: warning: [deprecation] COLOR_FormatYUV420Planar in CodecCapabilities has been deprecated
            format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar);
                                                                                            ^
/android-videostreamdecodingsample/app/src/main/java/com/dji/videostreamdecodingsample/media/DJIVideoStreamDecoder.java:797: warning: [deprecation] INFO_OUTPUT_BUFFERS_CHANGED in MediaCodec has been deprecated
            } else if (outIndex == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) {
                                             ^

Deprecated since years partly...

dji-dev commented 3 years ago

Agent comment from William Wong in Zendesk ticket #44924:

Dear Client Thank you for contacting DJI.

It is very strange that I havn't relicate your warnings, I feel like it is related to the Java API version. It should be fine, even though it is deprecated, you can still use it. You can find their replaced function in the Android API, they should have similar effect.

Hopefully our solution can help you. Kindly Regards, DJI Developer Support
inline1592547595.png