New issue
Advanced search Search tips

Issue 904236 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Audio stuttering on background media playback

Reported by daniel.s...@gmail.com, Nov 11

Issue description

Platform: 11151.17.0 (Official Build) beta-channel cyan

Chrome version: 71.0.3578.27  Channel: beta
OS Version: 11151.17.0
Flash Version: 31.0.0.135 

Steps to reproduce the problem:
1. Open the spotify app or the yt music app (play store app) 
2. Minimize it
3. Open the browser and start scrolling/clicking/etc

What is the expected behavior?
Any audio stuttering should be perceptible

What went wrong?
The audio starts to stutter a lot, with headphones it is more perceptible. It is even worse when using the touch screen.

More:
With YT music, if you close the app (It keeps playing the music and shows the status in the notification bar) the stuttering stops. I can't test this with spotify, since it doesn't keep playing the music after I close the app.

Afaik, this is a process priority issue. Streaming apps should have a higher priority even if in background.

 

Comment 1 Deleted

Disregard that, thought you were saying something else. 
Cc: dgreid@chromium.org cychiang@chromium.org
Cc: -cychiang@chromium.org
Owner: cychiang@chromium.org
Status: Assigned (was: Unconfirmed)
It might be that we are taking away too many CPU shares from android when there isn't a foreground app but there is audio playing?
It's probably that!
We could increase/decrease the cpu share value depending on the android app's priority flag. (idk if this is already done)
More info: https://developer.android.com/reference/android/os/Process
Hi Daniel,
Thank you for the feedback.
I tried to reproduce the issue but failed to minimize youtube app and keep it playing.

I am testing on a reef board with latest beta image R71-11151.30.
I use youtube app to play video.
When I click minimize button on the menu bar, the video playback stops.

Apart from background/foreground difference, I can hear noise if I scroll fast enough in another browser window. But if I just scroll with normal speed, there is no stutter noise.

Could you let me know how you minimize the app and keep it playing ?

There is an issue https://buganizer.corp.google.com/issues/73091832 tracking this priority problem. Some investigation and improvement had been done, but apparently we still have to take care the slower boards and more stressful condition.

Thanks!


I tested it using yt music, but it was more perceptible using spotify in the highest quality setting.
But you gave me an idea, I have youtube premium, so I can watch videos even if I minimize the app. I'll test video playback, until now, I was only testing audio streaming.
I might also say that the stable channel has a lot less stuttering than the beta channel (the one I was when I created this bug report)
Just for record:
 - Stable channel: 70.0.3538.76
 - Beta channel: 71.0.3578.27

OBS: I think I don't have the permission needed to visualize the issue in buganizer
Thank you for the explanation.
I can not test youtube music app for now.
But I do see more stutter happen when I switch to high quality on spotify.
The fact that spotify is minimized does not seem to affect stuttering.
The difference between stable channel and beta channel looks like a regression.
We will look into it.

Thanks!
Owner: paulhsia@chromium.org

Sign in to add a comment