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

Issue 2445533002: Don't suspend the pipeline before HaveFutureData while decoding progressing (Closed)

Created:
4 years, 2 months ago by watk
Modified:
4 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop suspending the pipeline before HaveFutureData while decoding Previously we could suspend the pipeline before HaveFutureData but after the media had been completely loaded, relying on the assumption that we could use the signal of didLoadingProgress() to resume and check if the new data got us to HaveFutureData. However, if the media is completely downloaded, there will be no more didLoadingProgress() calls which meant we could leave the player suspended forever. Now we check whether loading is stalled (didLoadingProgress() has not returned true for least 3 seconds) before suspending before HaveFutureData. If loading is stalled but we haven't reached HaveFutureData we assume that the pipeline is waiting for more data to complete preroll. BUG=655630 TEST=new tests Committed: https://crrev.com/d026f79cc5949df6bae399f58128b470f8061ad7 Cr-Commit-Position: refs/heads/master@{#430086}

Patch Set 1 #

Patch Set 2 : Use loading progress instead of decoding progress #

Total comments: 3

Patch Set 3 : wmpi tests and delegate tests and delegate test refactor #

Total comments: 2

Patch Set 4 : Remove unused variable #

Total comments: 2

Patch Set 5 : comments #

Patch Set 6 : fix compiler error from rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -253 lines) Patch
M content/browser/media/encrypted_media_browsertest.cc View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M content/renderer/media/renderer_webmediaplayer_delegate_browsertest.cc View 1 2 3 4 9 chunks +115 lines, -198 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M media/blink/webmediaplayer_delegate.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 4 chunks +36 lines, -4 lines 0 comments Download
M media/blink/webmediaplayer_impl_unittest.cc View 1 2 3 4 5 21 chunks +60 lines, -30 lines 0 comments Download

Messages

Total messages: 49 (29 generated)
watk
Tests coming. Just wanted to make sure you liked the approach. I don't really like ...
4 years, 2 months ago (2016-10-21 23:52:34 UTC) #2
watk
PTAL. Added sandersd to make sure he likes the updateplaystate stuff. I'm not sure about ...
4 years, 1 month ago (2016-10-28 01:25:57 UTC) #5
DaleCurtis
https://codereview.chromium.org/2445533002/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2445533002/diff/20001/media/blink/webmediaplayer_impl.cc#newcode1332 media/blink/webmediaplayer_impl.cc:1332: // Before HaveFutureData blink will not call play(), so ...
4 years, 1 month ago (2016-10-28 19:11:42 UTC) #6
watk
https://codereview.chromium.org/2445533002/diff/20001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2445533002/diff/20001/media/blink/webmediaplayer_impl.cc#newcode1332 media/blink/webmediaplayer_impl.cc:1332: // Before HaveFutureData blink will not call play(), so ...
4 years, 1 month ago (2016-10-28 20:03:23 UTC) #7
watk
PTAL
4 years, 1 month ago (2016-11-02 20:35:48 UTC) #13
watk
The delegate test refactor has made the diff kinda messy. Sorry about that. I can ...
4 years, 1 month ago (2016-11-02 21:11:02 UTC) #18
sandersd (OOO until July 31)
lgtm. https://codereview.chromium.org/2445533002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2445533002/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1340 media/blink/webmediaplayer_impl.cc:1340: base::TimeDelta::FromSeconds(3)) { Extract this constant?
4 years, 1 month ago (2016-11-03 18:01:58 UTC) #21
DaleCurtis
lgtm https://codereview.chromium.org/2445533002/diff/80001/media/blink/webmediaplayer_impl.h File media/blink/webmediaplayer_impl.h (right): https://codereview.chromium.org/2445533002/diff/80001/media/blink/webmediaplayer_impl.h#newcode570 media/blink/webmediaplayer_impl.h:570: // Points to |default_tick_clock_| by default, but can ...
4 years, 1 month ago (2016-11-03 18:05:48 UTC) #22
watk
https://codereview.chromium.org/2445533002/diff/60001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2445533002/diff/60001/media/blink/webmediaplayer_impl.cc#newcode1340 media/blink/webmediaplayer_impl.cc:1340: base::TimeDelta::FromSeconds(3)) { On 2016/11/03 18:01:58, sandersd wrote: > Extract ...
4 years, 1 month ago (2016-11-03 19:25:02 UTC) #24
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/2445533002/120001
4 years, 1 month ago (2016-11-03 19:26:42 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/310533)
4 years, 1 month ago (2016-11-03 22:00:40 UTC) #30
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/2445533002/120001
4 years, 1 month ago (2016-11-04 19:15:27 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/255060)
4 years, 1 month ago (2016-11-04 20:00:56 UTC) #34
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/2445533002/140001
4 years, 1 month ago (2016-11-04 20:40:07 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/326064)
4 years, 1 month ago (2016-11-04 22:21:08 UTC) #39
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/2445533002/140001
4 years, 1 month ago (2016-11-04 22:22:28 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/174912)
4 years, 1 month ago (2016-11-04 23:11:42 UTC) #43
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/2445533002/140001
4 years, 1 month ago (2016-11-04 23:13:39 UTC) #45
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 1 month ago (2016-11-05 00:29:38 UTC) #47
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 00:33:09 UTC) #49
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d026f79cc5949df6bae399f58128b470f8061ad7
Cr-Commit-Position: refs/heads/master@{#430086}

Powered by Google App Engine
This is Rietveld 408576698