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

Issue 209223002: Add support for HTMLMediaElement::getStartDate() (Closed)

Created:
6 years, 9 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 4 months ago
CC:
blink-reviews, jamesr, nessy, arv+blink, gasubic, fs, eric.carlson_apple.com, watchdog-blink-watchlist_google.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, abarth-chromium, vcarbune.chromium, Inactive, bemasc
Visibility:
Public.

Description

Add support for HTMLMediaElement::getStartDate() Implements minimal logic for exposing "timeline offset" information according to the HTML5 spec. These changes add a timelineOffset() method to the WebMediaPlayer so that Chromium code can provide Blink with this information. HTMLMediaElement uses this new method to expose the information to JavaScript. BUG=312699

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Place code behind a runtime flag and add LayoutTest. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
A LayoutTests/http/tests/media/media-source/mediasource-get-start-date.html View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/media/media-source/mediasource-get-start-date-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 2 chunks +5 lines, -0 lines 1 comment Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 4 chunks +29 lines, -0 lines 4 comments Download
M Source/core/html/HTMLMediaElement.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M public/platform/WebMediaPlayer.h View 2 chunks +11 lines, -0 lines 1 comment Download

Messages

Total messages: 13 (0 generated)
acolwell GONE FROM CHROMIUM
adamk: Source/core/html abarth: public/platform/ This patch depends on the following Chromium-side change. https://codereview.chromium.org/236023003/ I'm planning ...
6 years, 8 months ago (2014-04-14 17:04:40 UTC) #1
adamk
This seems fine, although I'm a bit surprised to see a Date in WebIDL again ...
6 years, 8 months ago (2014-04-14 17:22:40 UTC) #2
philipj_slow
I think this should be RuntimeEnabled until it's supported on all platforms. Given how many ...
6 years, 8 months ago (2014-04-15 23:26:24 UTC) #3
acolwell GONE FROM CHROMIUM
On 2014/04/15 23:26:24, philipj wrote: > I think this should be RuntimeEnabled until it's supported ...
6 years, 8 months ago (2014-04-15 23:44:47 UTC) #4
philipj_slow
On 2014/04/15 23:44:47, acolwell wrote: > On 2014/04/15 23:26:24, philipj wrote: > > I think ...
6 years, 8 months ago (2014-04-17 22:32:51 UTC) #5
acolwell GONE FROM CHROMIUM
On 2014/04/17 22:32:51, philipj wrote: > On 2014/04/15 23:44:47, acolwell wrote: > > On 2014/04/15 ...
6 years, 8 months ago (2014-04-18 17:20:47 UTC) #6
philipj_slow
On 2014/04/18 17:20:47, acolwell wrote: > The thing is that I know I can provide ...
6 years, 8 months ago (2014-04-19 14:16:57 UTC) #7
acolwell GONE FROM CHROMIUM
PTAL. I've put the feature behind a runtime flag for now and I've created an ...
6 years, 7 months ago (2014-05-06 00:49:24 UTC) #8
philipj_slow
LGTM % trivial nits https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode1615 Source/core/html/HTMLMediaElement.cpp:1615: // 2. Update the timeline ...
6 years, 7 months ago (2014-05-06 11:13:51 UTC) #9
philipj_slow
Oh right, will you send an Intent to Implement and link to it in the ...
6 years, 7 months ago (2014-05-06 11:15:59 UTC) #10
philipj_slow
https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode1943 Source/core/html/HTMLMediaElement.cpp:1943: return m_timelineOffset; My colleague has noticed that this value ...
6 years, 7 months ago (2014-05-15 11:37:59 UTC) #11
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode1943 Source/core/html/HTMLMediaElement.cpp:1943: return m_timelineOffset; On 2014/05/15 11:38:00, philipj wrote: > My ...
6 years, 7 months ago (2014-05-15 13:01:21 UTC) #12
philipj_slow
6 years, 7 months ago (2014-05-15 13:28:28 UTC) #13
https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMed...
File Source/core/html/HTMLMediaElement.cpp (right):

https://codereview.chromium.org/209223002/diff/60001/Source/core/html/HTMLMed...
Source/core/html/HTMLMediaElement.cpp:1943: return m_timelineOffset;
On 2014/05/15 13:01:22, acolwell_OOO_5-12_to_5-15 wrote:
> On 2014/05/15 11:38:00, philipj wrote:
> > My colleague has noticed that this value will be wrapped in a Date directly,
> so
> > it needs to be multiplied by 1000, probably here.
> It is already supposed to be in milliseconds since
> WebMediaPlayer::timelineOffset() that base::Time::ToJsTime() should be used to
> generate this value. I've made a note to update the documentation on
> m_timelineOffset.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698