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

Issue 530993002: WebMediaPlayerImpl should notify ended event

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

Description

WebMediaPlayerImpl should notify ended event HTMLMediaElement determines ended event by comparing two doubles. Sometimes it happens that the current time is not exactly equal to the duration. Because of this the event is not fired. This patch relays the ended event notification from WebMediaPlayerImpl to HTMLMediaElement. This will avoid comparision between two doubles. BUG=409280, 349543

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments #

Total comments: 4

Patch Set 3 : Shortening comments #

Patch Set 4 : removing use of m_sentEndEvent #

Total comments: 8

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -3 lines) Patch
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 3 chunks +15 lines, -3 lines 0 comments Download
M Source/platform/graphics/media/MediaPlayer.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M public/platform/WebMediaPlayerClient.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (2 generated)
amogh.bihani
PTAL. Please note that this will go in two parts. The duplicate part will be ...
6 years, 3 months ago (2014-09-02 12:19:05 UTC) #2
scherkus (not reviewing)
https://codereview.chromium.org/530993002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3103 Source/core/html/HTMLMediaElement.cpp:3103: // If the media element has a loop attribute ...
6 years, 3 months ago (2014-09-02 20:23:54 UTC) #3
amogh.bihani
Thanks for the review :) I have made that changes. https://codereview.chromium.org/530993002/diff/1/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/1/Source/core/html/HTMLMediaElement.cpp#newcode3103 ...
6 years, 3 months ago (2014-09-03 05:17:18 UTC) #4
amogh.bihani
https://codereview.chromium.org/530993002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode2112 Source/core/html/HTMLMediaElement.cpp:2112: Sorry, I'll remove this in next PS.
6 years, 3 months ago (2014-09-03 05:19:09 UTC) #5
scherkus (not reviewing)
few nits https://codereview.chromium.org/530993002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode2112 Source/core/html/HTMLMediaElement.cpp:2112: On 2014/09/03 05:19:09, amogh.bihani wrote: > Sorry, ...
6 years, 3 months ago (2014-09-03 17:16:45 UTC) #6
amogh.bihani
On 2014/09/03 17:16:45, scherkus wrote: > few nits > > https://codereview.chromium.org/530993002/diff/20001/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): ...
6 years, 3 months ago (2014-09-04 04:28:39 UTC) #7
philipj_slow
Is the new model that the WebMediaPlayer doesn't have to care about reaching currentTime==duration, but ...
6 years, 3 months ago (2014-09-04 14:53:16 UTC) #8
scherkus (not reviewing)
On 2014/09/04 14:53:16, philipj wrote: > Is the new model that the WebMediaPlayer doesn't have ...
6 years, 3 months ago (2014-09-04 21:36:21 UTC) #9
amogh.bihani
On 2014/09/04 21:36:21, scherkus wrote: > On 2014/09/04 14:53:16, philipj wrote: > > Is the ...
6 years, 3 months ago (2014-09-08 05:03:52 UTC) #11
philipj_slow
On 2014/09/04 21:36:21, scherkus wrote: > On 2014/09/04 14:53:16, philipj wrote: > > Is the ...
6 years, 3 months ago (2014-09-08 08:11:53 UTC) #12
amogh.bihani
On 2014/09/08 08:11:53, philipj wrote: > On 2014/09/04 21:36:21, scherkus wrote: > > On 2014/09/04 ...
6 years, 3 months ago (2014-09-09 05:49:42 UTC) #13
amogh.bihani
On 2014/09/09 05:49:42, amogh.bihani wrote: > On 2014/09/08 08:11:53, philipj wrote: > > On 2014/09/04 ...
6 years, 3 months ago (2014-09-10 08:41:30 UTC) #14
philipj_slow
On 2014/09/09 05:49:42, amogh.bihani wrote: > That seems cool. Plus I would say that we ...
6 years, 3 months ago (2014-09-10 12:56:03 UTC) #15
philipj_slow
https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode3080 Source/core/html/HTMLMediaElement.cpp:3080: if (!std::isnan(dur) && dur && now >= dur && ...
6 years, 3 months ago (2014-09-10 13:11:08 UTC) #16
amogh.bihani
On 2014/09/10 12:56:03, philipj wrote: > On 2014/09/09 05:49:42, amogh.bihani wrote: > > > That ...
6 years, 3 months ago (2014-09-10 13:14:45 UTC) #17
philipj_slow
https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode3086 Source/core/html/HTMLMediaElement.cpp:3086: void HTMLMediaElement::mediaPlayerEnded() Do you intend to clamp duration to ...
6 years, 3 months ago (2014-09-10 13:24:35 UTC) #18
philipj_slow
On 2014/09/10 13:14:45, amogh.bihani wrote: > On 2014/09/10 12:56:03, philipj wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-10 13:25:39 UTC) #19
amogh.bihani
https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/530993002/diff/60001/Source/core/html/HTMLMediaElement.cpp#newcode3080 Source/core/html/HTMLMediaElement.cpp:3080: if (!std::isnan(dur) && dur && now >= dur && ...
6 years, 3 months ago (2014-09-10 13:39:22 UTC) #20
philipj_slow
This now LGTM, but I'd like scherkus to take a final look, so that we ...
6 years, 3 months ago (2014-09-10 13:52:02 UTC) #21
acolwell GONE FROM CHROMIUM
On 2014/09/10 13:52:02, philipj wrote: > This now LGTM, but I'd like scherkus to take ...
6 years, 3 months ago (2014-09-10 17:44:05 UTC) #22
scherkus (not reviewing)
On 2014/09/10 17:44:05, acolwell wrote: > On 2014/09/10 13:52:02, philipj wrote: > > This now ...
6 years, 3 months ago (2014-09-10 17:54:29 UTC) #23
acolwell GONE FROM CHROMIUM
On 2014/09/10 17:54:29, scherkus wrote: > On 2014/09/10 17:44:05, acolwell wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 18:09:10 UTC) #24
acolwell GONE FROM CHROMIUM
On 2014/09/10 18:09:10, acolwell wrote: > On 2014/09/10 17:54:29, scherkus wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 18:12:19 UTC) #25
philipj_slow
On 2014/09/10 17:44:05, acolwell wrote: > On 2014/09/10 13:52:02, philipj wrote: > > This now ...
6 years, 3 months ago (2014-09-10 18:49:07 UTC) #26
acolwell GONE FROM CHROMIUM
On 2014/09/10 18:49:07, philipj wrote: > On 2014/09/10 17:44:05, acolwell wrote: > > On 2014/09/10 ...
6 years, 3 months ago (2014-09-11 16:44:20 UTC) #27
philipj_slow
Thanks, these are good points, I'll try to remember them this time :) I think ...
6 years, 3 months ago (2014-09-11 19:03:41 UTC) #28
philipj_slow
Ping scherkus.
6 years, 3 months ago (2014-09-16 21:57:35 UTC) #29
scherkus (not reviewing)
amogh: can you rebase and also upload the Chromium-side changes that will accompany this CL? ...
6 years, 3 months ago (2014-09-16 23:48:19 UTC) #30
scherkus (not reviewing)
(also I apologize for the delay -- this fell off my plate and I appreciate ...
6 years, 3 months ago (2014-09-16 23:48:42 UTC) #31
amogh.bihani
On 2014/09/16 23:48:19, scherkus wrote: > amogh: can you rebase and also upload the Chromium-side ...
6 years, 3 months ago (2014-09-17 05:51:11 UTC) #32
amogh.bihani
6 years, 3 months ago (2014-09-22 12:57:04 UTC) #33
Ping! ^_^

Powered by Google App Engine
This is Rietveld 408576698