h6ah4i / android-openslmediaplayer

Re-implementation of Android's MediaPlayer and audio effect classes based on OpenSL ES APIs.
https://openslmediaplayer.h6ah4i.com
Apache License 2.0
417 stars 97 forks source link

Can't play OGG files on Android 7+ #28

Open h6ah4i opened 7 years ago

h6ah4i commented 7 years ago

I noticed that OpenSLMediaPlayer failed to play OGG files on Android 7.0+. The following error message printed on logcat;

E/ACodec: [OMX.google.vorbis.decoder] ERROR(0x80001005)
E/ACodec: signalError(omxError 0x80001005, internalError -2147483648)
E/MediaCodec: Codec reported err 0x80001005, actionCode 0, while in state 6

              [ 01-29 13:15:28.973  8422: 8489 W/         ]
              [OMX.google.vorbis.decoder] could not get input buffer #0
E/libOpenSLES: MediaSource::read returned error -2147483648
h6ah4i commented 7 years ago

Also, this bug triggers infinite wait on calling prepare() method.

h6ah4i commented 7 years ago

[UPDATE] I reported this on AOSP issue tracker

https://code.google.com/p/android/issues/detail?id=234222

baioug commented 7 years ago

i can play ogg on my xiaomi 5 device, i do not call prepare();