-
Notifications
You must be signed in to change notification settings - Fork 408
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
Audio stutters on Samsung Galaxy A31 with audioTrackUnderrun error #300
Comments
I can reproduce this with fairely good accuracy on an S23 ultra. |
Observed that this happens if audio is encrypted as well & reproducible on multiple OTT apps. Also issue is only on OS 12 did not occur on OS 10 or 11. |
I have not been able to reproduce this issue with a Galaxy S22 device on Android 12 with your provided content. Could you elaborate on the reproduction steps? Do you just play the provided content from the demo app and it should stutter? Does it repro 100% of the time? Is some previous track supposed to be played beforehand like how @brabebhin was reproducing it? Perhaps we can try narrowing down the problem. What happens if we try a software decoder (if its available)?
@brabebhin. |
@microkatz Not sure about Galaxy S22 but it is always reproducible with a Samsung Galaxy A31 device running on OS v12 & yes it is reproducible 100% of the time. There are no special steps just play the provided content for sometime like 5mins or so we tried with all the available decoders still same the issue. |
Hi @microkatz thanks for the response. I can defenetly keep an eye out for some extra details. Here's some food for thought:
This is a very annoying and rather difficult bug to reproduce. It only really shows up if you have a media app that is somewhat capable of being a full daily driver of media playback (should be able to at least provice basic functions like play/add to now playing/skipping to specific index in the list). I do not belive the demo app is capable of doing that. |
@microkatz |
@microkatz the mime type is audio/mp4a-latm (audio_aac) |
Anyways, I think the exo player should not control its own playlist or source. The source should be a property of the ExoPlayer and exoplayer should be just what it claims to be: a player.. Then the default Player implementation of media3 could be a wrapper over an exoplayer and a MediaList/ConcatinatingMediaSource. This should give developers more freedom in using various media sources with exoplayer. Disabling gapless playback seems to involve too much effort - it is easier to implement the Player interface with a more mature framework such as libVLC than sticking with exoplayer. |
@microkatz We were able to workaround this issue by forcing this device model to use Widevine L3 drm. Stream config which has this issue was Video + Audio (Both Encrypted) & Widevine L1 DRM. |
Media3 Version
ExoPlayer 2.18.2
Devices that reproduce the issue
Samsung Galaxy A31 running on version 12
Build Number : A315FXXU2DWB3
Android version : S(Android 12)
Release Date : 2023-03-14
Security patch level : 2023-02-01
Devices that do not reproduce the issue
Not seen this issue on other devices also on same device running android version 10 & 11.
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
Media playback should happen without audio stuttering
Actual result
Media playback audio stutters with audioTrackUnderrun events being reported.
audioTrackUnderrun [eventTime=10.41, mediaPos=7.94, window=0, period=0, 120832, 684, 64]
Media
Will email the required details
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: