Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings in DJIVideoStreamDecoder #71

Open
neilyoung opened this issue Mar 12, 2021 · 1 comment
Open

Deprecation warnings in DJIVideoStreamDecoder #71

neilyoung opened this issue Mar 12, 2021 · 1 comment

Comments

@neilyoung
Copy link

> 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
Copy link
Collaborator

dji-dev commented Mar 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants