android-openslmediaplayer
android-openslmediaplayer copied to clipboard
Can't play OGG files on Android 7+
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
- Affected
- Nexus 9 + Android 7.0 (NRD91D)
- Nexus 5X + Android 7.1.1 (N4F26I)
- Not affected
- Nexus 5 + Android 6.0.1 (MOB30Y)
- Asus K013 + Android 4.4.2 (JP-3.2.23.202 044000222_201403250253)
Also, this bug triggers infinite wait on calling prepare()
method.
[UPDATE] I reported this on AOSP issue tracker
https://code.google.com/p/android/issues/detail?id=234222
i can play ogg on my xiaomi 5 device, i do not call prepare();