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

Issue 2115143002: Transition media element to HAVE_CURRENT_DATA upon underflow. (Closed)

Created:
4 years, 5 months ago by chcunningham
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Transition media element to HAVE_CURRENT_DATA upon underflow. Previously underflow would cause a pause but did not change the readyState to HAVE_CURRENT_DATA. This also meant that we did not emit the "waiting" event upon underflow, meaning apps were not properly informed when playback stalls. This CL fixes all of that. This CL fixes a layout test that was meant to cover this scenario but did not properly check the waiting event. The test has been refactored to use the new testharness.js. Still missing is support for transitioning to HAVE_FUTURE_DATA. Currently we will transition immediately from HAVE_CURRENT to HAVE_ENOUGH, skipping HAVE_FUTURE. This is less critical, but still nice to have, especially for MediaSource. BUG=144683, 279213 TEST=fixed layout test Committed: https://crrev.com/eb270c9af201e549f3e2e2b1016b6b99565f1706 Cr-Commit-Position: refs/heads/master@{#405656}

Patch Set 1 #

Total comments: 23

Patch Set 2 : Feedback #

Patch Set 3 : Rebase #

Patch Set 4 : Fix test expectations (no pngs) #

Total comments: 6

Patch Set 5 : Rebase #

Patch Set 6 : Feedback #

Messages

Total messages: 31 (11 generated)
chcunningham
Finally got that test sorted out. PTAL
4 years, 5 months ago (2016-07-01 23:30:59 UTC) #2
chcunningham
Ping.
4 years, 5 months ago (2016-07-07 20:56:26 UTC) #4
wolenetz
On 2016/07/07 20:56:26, chcunningham wrote: > Ping. Yep - I'm on it today. Just finishing ...
4 years, 5 months ago (2016-07-07 21:06:37 UTC) #5
wolenetz
First round of comments. I didn't fully CR the new layout test, since it's failing ...
4 years, 5 months ago (2016-07-07 21:32:03 UTC) #7
wolenetz
On 2016/07/07 21:32:03, wolenetz wrote: > First round of comments. I didn't fully CR the ...
4 years, 5 months ago (2016-07-07 21:35:25 UTC) #8
sandersd (OOO until July 31)
https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 media/blink/webmediaplayer_impl.cc:1058: client_->timeChanged(); On 2016/07/07 21:32:03, wolenetz wrote: > Is timeChanged() ...
4 years, 5 months ago (2016-07-07 21:49:19 UTC) #9
chcunningham
On 2016/07/07 21:35:25, wolenetz wrote: > Now might also be a good time to fix ...
4 years, 5 months ago (2016-07-07 22:29:14 UTC) #10
chcunningham
https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 media/blink/webmediaplayer_impl.cc:1058: client_->timeChanged(); On 2016/07/07 21:49:19, sandersd wrote: > On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 22:29:41 UTC) #11
wolenetz
On 2016/07/07 22:29:41, chcunningham wrote: > https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc > File media/blink/webmediaplayer_impl.cc (right): > > https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 > ...
4 years, 5 months ago (2016-07-07 22:32:17 UTC) #12
sandersd (OOO until July 31)
https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 media/blink/webmediaplayer_impl.cc:1058: client_->timeChanged(); On 2016/07/07 22:29:41, chcunningham wrote: > On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 22:33:12 UTC) #13
wolenetz
On 2016/07/07 22:29:14, chcunningham wrote: > On 2016/07/07 21:35:25, wolenetz wrote: > > Now might ...
4 years, 5 months ago (2016-07-11 17:39:03 UTC) #14
chcunningham
https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 media/blink/webmediaplayer_impl.cc:1058: client_->timeChanged(); On 2016/07/07 22:33:12, sandersd wrote: > On 2016/07/07 ...
4 years, 5 months ago (2016-07-12 00:47:18 UTC) #15
sandersd (OOO until July 31)
Tests lgtm.
4 years, 5 months ago (2016-07-12 01:06:51 UTC) #16
wolenetz
LGTM % nits: https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2115143002/diff/1/media/blink/webmediaplayer_impl.cc#newcode1058 media/blink/webmediaplayer_impl.cc:1058: client_->timeChanged(); On 2016/07/12 00:47:17, chcunningham wrote: ...
4 years, 5 months ago (2016-07-13 22:27:54 UTC) #21
wolenetz
https://codereview.chromium.org/2115143002/diff/60001/third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html File third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html (right): https://codereview.chromium.org/2115143002/diff/60001/third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html#newcode109 third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html:109: // The delay of 6 seconds is chosen to ...
4 years, 5 months ago (2016-07-14 18:56:44 UTC) #22
chcunningham
Thanks for review! https://codereview.chromium.org/2115143002/diff/60001/third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html File third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html (right): https://codereview.chromium.org/2115143002/diff/60001/third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html#newcode58 third_party/WebKit/LayoutTests/http/tests/media/video-play-stall.html:58: .then(() => playback_ew.wait_for('loadedmetadata')).then(logEvent) On 2016/07/13 22:27:54, ...
4 years, 5 months ago (2016-07-14 22:25:02 UTC) #23
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/2115143002/100001
4 years, 5 months ago (2016-07-14 22:26:04 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-15 01:00:59 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 01:01:02 UTC) #29
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 01:03:36 UTC) #31
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eb270c9af201e549f3e2e2b1016b6b99565f1706
Cr-Commit-Position: refs/heads/master@{#405656}

Powered by Google App Engine
This is Rietveld 408576698