Status Update
Comments
fr...@gmx.de <fr...@gmx.de> #2
Running into a similar issue, any update on this?
vi...@google.com <vi...@google.com> #3
This is a platform behavior change.
pu...@gmail.com <pu...@gmail.com> #4
pu...@gmail.com <pu...@gmail.com> #5
vi...@google.com <vi...@google.com> #6
Any progress?
pu...@gmail.com <pu...@gmail.com> #7
vi...@google.com <vi...@google.com> #9
ib...@google.com <ib...@google.com> #10
This issue is also stopping us from being able to support edge-to-edge in Android 15. Given it's a enforced requirement for targeting Android 15, couldn't this be prioritised higher? Companies like us have hundreds of screens to fix so waiting until 2025 for a workaround is going to be tough work.
pu...@gmail.com <pu...@gmail.com> #11
Maybe you can create a static method, com.your.company.ViewGroupCompat#installCompatInsetsDispatch
, like this:
After creating the method, you need to call ViewGroupCompat.installCompatInsetsDispatch(getWindow().getDecorView())
in onCreate()
of your activity to make the behavior compatible with API 30+.
When the new library with the API is released, you can replace com.your.company.ViewGroupCompat
with androidx.core.view.ViewGroupCompat
.
pu...@gmail.com <pu...@gmail.com> #12
Wow quick response, thanks! I just tried applying that workaround to our root view and can confirm it fixes the issue. (Also FYI there's a typo in the PR; "comsumed")
Description
I'm the developer of an app that plays MP3/AAC http streams. It uses
MediaPlayer
, playing a http URL pointing to a MP3/AAC stream. Nothing special here.Since a while, only on Google Pixel devices (starting at least at Pixel 6 up to Pixel 9, with various Android versions up to the latest stable Android 15), there is a buffering issue resulting in periodic small audio drop out, every time
MediaPlayer
does buffering.Each time there is a drop out, logcat shows:
code 701 is
MEDIA_INFO_BUFFERING_START
whose documentation inmediaplayer.h
says:So audio is briefly pausing until code 702 (
MEDIA_INFO_BUFFERING_END
) is received 23ms, enough for the drop out to be heard.It would be really great to see this buffering issue fixed because it only happens on Google Pixel devices (to my knowledge). In my app I have a workaround that replaces
MediaPlayer
by FFmpeg for the decoding, but not all apps will have that luxury.To reproduce it on a Google Pixel:
MediaPlayer
instance to play a MP3 or AAC http stream (MediaPlayer#setDataSource
)MediaPlayer
is buffering, with related traces in logcat