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

Issue 562493003: Allow seeks to zero on streaming sources. (Closed)

Created:
6 years, 3 months ago by DaleCurtis
Modified:
6 years, 2 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium, scherkus (not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Allow seeks to zero on streaming sources. Adds a [0, 0] range to seekable() when a streaming source with a known duration is present. Doing so allows the seek triggered by loop attribute presence upon ended to correctly seek back to zero. To facilitate testing, the serve-video.php script now supports a new argument "norange" which serves files with a 200 response instead of 206. BUG=412562 TEST=new layout test.

Patch Set 1 #

Total comments: 13

Patch Set 2 : Expose 0,0 range. #

Patch Set 3 : Add tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -8 lines) Patch
A LayoutTests/http/tests/media/audio-seekable-contains-zero-without-ranges.html View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/media/resources/load-video.php View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M LayoutTests/http/tests/media/resources/serve-video.php View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (4 generated)
DaleCurtis
If this looks reasonable I'll add a layout test for it.
6 years, 3 months ago (2014-09-10 00:38:02 UTC) #2
philipj_slow
Can you split the TimeRanges fix into a separate CL?
6 years, 3 months ago (2014-09-10 12:38:27 UTC) #3
philipj_slow
Thanks for working on this, let's see if we can agree on a fix :) ...
6 years, 3 months ago (2014-09-10 12:51:18 UTC) #5
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3233 Source/core/html/HTMLMediaElement.cpp:3233: // For non-streaming media, emulate a seekable range around ...
6 years, 3 months ago (2014-09-10 17:38:43 UTC) #6
DaleCurtis
Thanks for taking a look guys! I'll split it up shortly. Just comments for now ...
6 years, 3 months ago (2014-09-10 17:45:19 UTC) #7
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3239 Source/core/html/HTMLMediaElement.cpp:3239: ranges->add(now, now + std::numeric_limits<double>::epsilon()); On 2014/09/10 17:45:18, DaleCurtis wrote: ...
6 years, 3 months ago (2014-09-10 18:33:19 UTC) #8
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3239 Source/core/html/HTMLMediaElement.cpp:3239: ranges->add(now, now + std::numeric_limits<double>::epsilon()); On 2014/09/10 17:45:18, DaleCurtis wrote: ...
6 years, 3 months ago (2014-09-10 18:41:06 UTC) #9
philipj_slow
https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/562493003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3233 Source/core/html/HTMLMediaElement.cpp:3233: // For non-streaming media, emulate a seekable range around ...
6 years, 3 months ago (2014-09-10 18:42:10 UTC) #10
DaleCurtis
Our caching story is a little complicated. The media/ code has no insight into whether ...
6 years, 3 months ago (2014-09-10 18:56:49 UTC) #11
DaleCurtis
TimeRanges split out here: https://codereview.chromium.org/559993004/ -- no changes to this CL yet pending discussion resolution.
6 years, 3 months ago (2014-09-10 23:09:05 UTC) #12
philipj_slow
Won't having a range [0,epsilon] mean that a script-initiated seek to e.g. 1 will clamp ...
6 years, 3 months ago (2014-09-11 11:11:35 UTC) #13
philipj_slow
On 2014/09/10 18:56:49, DaleCurtis wrote: > The media/ code has no insight into whether it's ...
6 years, 3 months ago (2014-09-11 11:23:34 UTC) #14
philipj_slow
Oops. cache_util.h's GetReasonsForUncacheability() is only used for UMA, right? I'm not sure how to best ...
6 years, 3 months ago (2014-09-11 11:31:21 UTC) #15
DaleCurtis
On 2014/09/11 11:31:21, philipj wrote: > Oops. > > cache_util.h's GetReasonsForUncacheability() is only used for ...
6 years, 3 months ago (2014-09-11 20:43:04 UTC) #16
DaleCurtis
Actually, I need to amend that last comment. While we don't have access to the ...
6 years, 3 months ago (2014-09-11 21:15:53 UTC) #17
DaleCurtis
Alright I think I have a good proposal which extends past fixing this issue: - ...
6 years, 3 months ago (2014-09-11 22:07:16 UTC) #18
philipj_slow
Sorry for letting this sit in limbo, I have many reviews to go through and ...
6 years, 3 months ago (2014-09-16 19:37:32 UTC) #19
DaleCurtis
On 2014/09/16 19:37:32, philipj wrote: > Sorry for letting this sit in limbo, I have ...
6 years, 3 months ago (2014-09-16 20:12:12 UTC) #20
acolwell GONE FROM CHROMIUM
On 2014/09/16 20:12:12, DaleCurtis wrote: > On 2014/09/16 19:37:32, philipj wrote: > > > > ...
6 years, 3 months ago (2014-09-16 20:49:34 UTC) #21
philipj_slow
So let's figure out what the best long-term solution would be and if that isn't ...
6 years, 3 months ago (2014-09-16 21:56:13 UTC) #22
acolwell GONE FROM CHROMIUM
On 2014/09/16 21:56:13, philipj wrote: > So let's figure out what the best long-term solution ...
6 years, 3 months ago (2014-09-16 22:18:27 UTC) #23
DaleCurtis
On 2014/09/16 22:18:27, acolwell_leaving_chromium_9-23 wrote: > On 2014/09/16 21:56:13, philipj wrote: > > So let's ...
6 years, 3 months ago (2014-09-16 23:35:17 UTC) #24
DaleCurtis
In the interest of progress, I've uploaded the 0,0 version. TimeRanges accepts such ranges without ...
6 years, 3 months ago (2014-09-17 01:43:24 UTC) #25
philipj_slow
On 2014/09/17 01:43:24, DaleCurtis wrote: > In the interest of progress, I've uploaded the 0,0 ...
6 years, 3 months ago (2014-09-17 08:09:01 UTC) #26
philipj_slow
The spec doesn't allow a [0,0] range, do you want me to open a spec ...
6 years, 3 months ago (2014-09-17 08:11:01 UTC) #27
DaleCurtis
On 2014/09/17 08:09:01, philipj wrote: > On 2014/09/17 01:43:24, DaleCurtis wrote: > > In the ...
6 years, 3 months ago (2014-09-17 19:50:48 UTC) #28
DaleCurtis
On 2014/09/17 08:11:01, philipj wrote: > The spec doesn't allow a [0,0] range, do you ...
6 years, 3 months ago (2014-09-17 19:51:42 UTC) #29
philipj_slow
On 2014/09/17 19:50:48, DaleCurtis wrote: > On 2014/09/17 08:09:01, philipj wrote: > > On 2014/09/17 ...
6 years, 3 months ago (2014-09-18 14:55:39 UTC) #30
philipj_slow
Here's the spec bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=26847 I can't add you to CC, I think you need ...
6 years, 3 months ago (2014-09-18 15:04:32 UTC) #31
DaleCurtis
I'm following along on that bug. While the TimeRanges question is separate to our seeking ...
6 years, 3 months ago (2014-09-19 19:46:43 UTC) #33
DaleCurtis
Sorry for the delay, perf season is upon us at Google. :| I see that ...
6 years, 3 months ago (2014-09-24 00:59:58 UTC) #34
philipj_slow
On 2014/09/24 00:59:58, DaleCurtis wrote: > Sorry for the delay, perf season is upon us ...
6 years, 3 months ago (2014-09-24 09:09:17 UTC) #35
philipj_slow
OK, the spec change is in, together with some strong hints directed at us: https://html5.org/r/8819 ...
6 years, 3 months ago (2014-09-25 09:29:34 UTC) #36
philipj_slow
As such: https://codereview.chromium.org/607493002/ https://codereview.chromium.org/599103003/ https://codereview.chromium.org/604823002/
6 years, 2 months ago (2014-09-25 13:08:46 UTC) #37
DaleCurtis
I think it's a great idea. Sorry for the delay in this CL, hopefully I ...
6 years, 2 months ago (2014-09-25 17:36:44 UTC) #38
philipj_slow
It would be great if you can work out how to solve the bug (412562) ...
6 years, 2 months ago (2014-09-25 20:48:52 UTC) #39
philipj_slow
https://code.google.com/p/chromium/issues/detail?id=417669 is finished now.
6 years, 2 months ago (2014-09-30 11:37:34 UTC) #40
DaleCurtis
6 years, 2 months ago (2014-10-01 00:09:26 UTC) #42

Powered by Google App Engine
This is Rietveld 408576698