New issue
Advanced search Search tips

Issue 603358 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 601066
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Video pauses while scrolling on Moto X with unified media pipeline

Project Member Reported by w...@chromium.org, Apr 14 2016

Issue description

While the page is scrolling, video playback stops (audio stops as well).

Also, if you scroll the video off the page and come back to it, the video is frozen while audio continues playing.

See the attached screenrecording.
 
movie.mp4
12.6 MB Download

Comment 1 by w...@chromium.org, Apr 14 2016

I forgot to mention that these issues don't occur with the unified pipeline disabled.

Comment 2 by w...@chromium.org, Apr 15 2016

It turns out the freezing occurs when:
* MediaCodec is waiting for an output buffer to be returned to it, and
* the video is offscreen, so the rendering pipeline is holding onto an unrendered frame, and
* when you scroll the video back on screen, if more than 2 seconds have elapsed, the AVDA timer will have stopped. So when the output buffer is released, the timer is still off so playback freezes.
does keeping the timer on all the time fix it?  when i saw a very similar problem, it didn't.

how many unrendered buffers is MediaCodec willing to provide in this case?  i saw that it was willing to provide many, and they were returned to AVDA without rendering.  are you seeing frames come back in ReusePictureBuffer when it's off-screen?

if MC is only providing one buffer, then it makes sense.  making the codec image start the timer is easy enough.
Cc: -w...@chromium.org
Owner: w...@chromium.org
Status: Assigned (was: Untriaged)
Matt, can you take it or assign appropriately?

Comment 5 by w...@chromium.org, Apr 21 2016

Owner: dalecur...@chromium.org
Dale, were you still looking into fixing this?
Mergedinto: 601066
Status: Duplicate (was: Assigned)

Sign in to add a comment