Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Issue 2423903003: AudioRendererImpl: Don't advance time when rendering stops. (Closed)

Created:
4 years, 2 months ago by chcunningham
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AudioRendererImpl: Don't advance time when rendering stops. This is a quick work-around for the bug below. AudioRendererImpl was recently improved to estimate time's advancing along the last rendered audio buffer between Render() calls. This means the clock is capable of still advancing a bit after OnBufferingStateChange indicates we've run out of data. While tehcnically correct, the clocks advancing causes blink to emit 'timeupdate' events with time advancing after emitting 'waiting' indicating that no data is buffered. This change stops the clock once the render has underflowed. Longterm, blink should be improved to gaurd against emitting timeupdate after waiting. This larger change will be done separately to give it time to bake. https://codereview.chromium.org/2425463002/ BUG=648710 Committed: https://crrev.com/9409db28cd7402d4bad8022afbd2b3719de72d08 Cr-Commit-Position: refs/heads/master@{#425871}

Patch Set 1 #

Patch Set 2 : Doing fix in ARI #

Total comments: 4

Patch Set 3 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -4 lines) Patch
M media/renderers/audio_renderer_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 2 4 chunks +19 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html View 3 chunks +26 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
chcunningham
4 years, 2 months ago (2016-10-17 23:26:03 UTC) #4
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2423903003/diff/20001/media/renderers/audio_renderer_impl.cc File media/renderers/audio_renderer_impl.cc (right): https://codereview.chromium.org/2423903003/diff/20001/media/renderers/audio_renderer_impl.cc#newcode182 media/renderers/audio_renderer_impl.cc:182: // layer (avoid currentTime advancing while after signaling ...
4 years, 2 months ago (2016-10-17 23:37:37 UTC) #5
chcunningham
Thanks! https://codereview.chromium.org/2423903003/diff/20001/media/renderers/audio_renderer_impl.cc File media/renderers/audio_renderer_impl.cc (right): https://codereview.chromium.org/2423903003/diff/20001/media/renderers/audio_renderer_impl.cc#newcode182 media/renderers/audio_renderer_impl.cc:182: // layer (avoid currentTime advancing while after signaling ...
4 years, 2 months ago (2016-10-17 23:49:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2423903003/40001
4 years, 2 months ago (2016-10-17 23:50:20 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-18 02:50:25 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 02:52:31 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9409db28cd7402d4bad8022afbd2b3719de72d08
Cr-Commit-Position: refs/heads/master@{#425871}

Powered by Google App Engine
This is Rietveld 408576698