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

Issue 517593003: Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA (Closed)

Created:
6 years, 3 months ago by amogh.bihani
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Allow HTMLMediaElement.currentTime to be set before the transition to HAVE_METADATA Spec now allows currentTime to be set when the readyState is still HAVE_NOTHING. This patch modifies the behaviour in accordance to the spec. The default playback start position is set to the new currentTime and the resource plays from that point once it is loaded. http://www.whatwg.org/specs/web-apps/current-work/#dom-media-currenttime BUG=399314 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181736

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressing Comments #

Total comments: 2

Patch Set 3 : adding check for noSeekRequired #

Total comments: 9

Patch Set 4 : Cleaning up seeking as per Editor's draft #

Patch Set 5 : Fast-Forward to origin/master and rebase #

Total comments: 14

Patch Set 6 : Resolving nits #

Total comments: 1

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -63 lines) Patch
A LayoutTests/media/video-currentTime-before-have-metadata.html View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/media/video-currentTime-before-have-metadata-expected.txt View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A + LayoutTests/media/video-seek-no-src.html View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
D LayoutTests/media/video-seek-no-src-exception.html View 1 1 chunk +0 lines, -17 lines 0 comments Download
M LayoutTests/media/video-seek-no-src-exception-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
A LayoutTests/media/video-seek-no-src-expected.txt View 1 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 14 chunks +40 lines, -27 lines 0 comments Download
M Source/core/html/MediaController.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/MediaController.cpp View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/MediaController.idl View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (4 generated)
amogh.bihani
PTAL.
6 years, 3 months ago (2014-09-01 05:58:40 UTC) #2
philipj_slow
Looks promising, thanks for working on this! https://codereview.chromium.org/517593003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1827 Source/core/html/HTMLMediaElement.cpp:1827: if (m_defaultPlaybackStartPosition ...
6 years, 3 months ago (2014-09-02 13:03:31 UTC) #3
amogh.bihani
Thanks for the review :) https://codereview.chromium.org/517593003/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode1827 Source/core/html/HTMLMediaElement.cpp:1827: if (m_defaultPlaybackStartPosition > 0) ...
6 years, 3 months ago (2014-09-02 13:39:54 UTC) #4
philipj_slow
There are some simplifications made possible by your patch: https://codereview.chromium.org/526413002 If you want to include ...
6 years, 3 months ago (2014-09-02 15:54:48 UTC) #5
amogh.bihani
Thanks :) I have merged your patch with this one and addressed the comments. https://codereview.chromium.org/517593003/diff/20001/Source/core/html/HTMLMediaElement.cpp ...
6 years, 3 months ago (2014-09-03 13:14:33 UTC) #6
philipj_slow
https://codereview.chromium.org/517593003/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode1827 Source/core/html/HTMLMediaElement.cpp:1827: if (m_defaultPlaybackStartPosition > 0) { On 2014/09/03 13:14:32, amogh.bihani ...
6 years, 3 months ago (2014-09-03 14:09:14 UTC) #7
amogh.bihani
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1983 Source/core/html/HTMLMediaElement.cpp:1983: bool noSeekRequired = !seekableRanges->length() || (time == now && ...
6 years, 3 months ago (2014-09-04 13:44:07 UTC) #8
philipj_slow
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1983 Source/core/html/HTMLMediaElement.cpp:1983: bool noSeekRequired = !seekableRanges->length() || (time == now && ...
6 years, 3 months ago (2014-09-04 13:53:40 UTC) #9
amogh.bihani
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1937 Source/core/html/HTMLMediaElement.cpp:1937: While working on media fragments URI it came out ...
6 years, 3 months ago (2014-09-08 10:26:38 UTC) #10
philipj_slow
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1937 Source/core/html/HTMLMediaElement.cpp:1937: On 2014/09/08 10:26:38, amogh.bihani wrote: > While working on ...
6 years, 3 months ago (2014-09-08 15:00:58 UTC) #11
philipj_slow
Oh, by the way, if you want to finish up this CL before everything about ...
6 years, 3 months ago (2014-09-08 15:03:22 UTC) #12
amogh.bihani
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1937 Source/core/html/HTMLMediaElement.cpp:1937: On 2014/09/08 15:00:58, philipj wrote: > On 2014/09/08 10:26:38, ...
6 years, 3 months ago (2014-09-09 05:30:52 UTC) #13
philipj_slow
https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1937 Source/core/html/HTMLMediaElement.cpp:1937: On 2014/09/09 05:30:52, amogh.bihani wrote: > On 2014/09/08 15:00:58, ...
6 years, 3 months ago (2014-09-09 08:39:37 UTC) #15
amogh.bihani
On 2014/09/09 08:39:37, philipj wrote: > https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/517593003/diff/40001/Source/core/html/HTMLMediaElement.cpp#newcode1937 > ...
6 years, 3 months ago (2014-09-09 13:48:09 UTC) #17
philipj_slow
On 2014/09/09 13:48:09, amogh.bihani wrote: > I have raised a bug for discussion at > ...
6 years, 3 months ago (2014-09-09 15:27:55 UTC) #18
amogh.bihani
On 2014/09/09 15:27:55, philipj wrote: > On 2014/09/09 13:48:09, amogh.bihani wrote: > > > I ...
6 years, 3 months ago (2014-09-10 03:21:17 UTC) #19
philipj_slow
Looks good with some minor nits. If you fix those up I'll CQ it for ...
6 years, 3 months ago (2014-09-10 09:57:06 UTC) #20
amogh.bihani
Thanks :) https://codereview.chromium.org/517593003/diff/120001/LayoutTests/media/video-currentTime-before-have-metadata.html File LayoutTests/media/video-currentTime-before-have-metadata.html (right): https://codereview.chromium.org/517593003/diff/120001/LayoutTests/media/video-currentTime-before-have-metadata.html#newcode13 LayoutTests/media/video-currentTime-before-have-metadata.html:13: video.currentTime = 1; On 2014/09/10 09:57:05, philipj ...
6 years, 3 months ago (2014-09-10 11:18:33 UTC) #21
philipj_slow
LGTM with a tiny nit. I wish I could just edit directly in the review, ...
6 years, 3 months ago (2014-09-10 13:35:53 UTC) #22
amogh.bihani
On 2014/09/10 13:35:53, philipj wrote: > LGTM with a tiny nit. I wish I could ...
6 years, 3 months ago (2014-09-10 13:44:21 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/amogh.bihani@samsung.com/517593003/160001
6 years, 3 months ago (2014-09-10 13:44:53 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 14:49:09 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as 181736

Powered by Google App Engine
This is Rietveld 408576698