API version for AMediaCodec_setAsyncNotifyCallback

288 views
Skip to first unread message

jonlgre...@gmail.com

unread,
Sep 15, 2018, 3:37:02 PM9/15/18
to android-ndk
The NdkMediaCodec.h header file requires API level 28 for the declaration of AMediaCodec_setAsyncNotifyCallback.

The java documentation for the equivalent function setCallback of class android.media.MediaCodec is specified at API level 21.

I'm puzzled why there is such a big discrepancy in the API level for these equivalent functionalities. Is this a mistake in the header, or was there a long delay in implementing the async system in the ndk version?

Alex Cohn

unread,
Oct 4, 2018, 4:07:17 AM10/4/18
to android-ndk
The relevant commit is dated Nov 23, 2017. Note that you can work around this problem, as VLC has been doing: https://trac.videolan.org/vlc/ticket/20342.

BR
Alex
Reply all
Reply to author
Forward
0 new messages