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

Issue 431903003: Always notify the MediaPlayer of any seek. (Closed)

Created:
6 years, 4 months ago by Srirama
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, philipj_slow, 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

Always notify the MediaPlayer of any seek. This change removes short circuit logic for seeking to the current position. There are certain situations, like seeking to a truncated duration, where the HTMLMediaElement is not in the best position to determine whether a call to the MediaPlayer is necessary or not. This change allows the MediaPlayer/WebMediaPlayer implementation to determine what the best course of action should be. This also makes the seeking behavior more spec compliant because even a seek to the current position should have the seeking attribute be true until a stable state occurs. This is guaranteed when calling into the MediaPlayer and allows all seeks to be treated the same at the HTMLMediaElement level. BUG=266631 TEST=LayoutTests/media/video-seek-to-current-position.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179347

Patch Set 1 #

Patch Set 2 : Modified on top of acolwell's patch #

Total comments: 4

Patch Set 3 : Fixed review comments #

Total comments: 4

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -37 lines) Patch
M LayoutTests/media/media-controller-effective-playback-rate.html View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M LayoutTests/media/media-controller-effective-playback-rate-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/media-controller-playbackrate.html View 1 2 3 2 chunks +16 lines, -9 lines 0 comments Download
M LayoutTests/media/media-controller-playbackrate-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/media/video-seek-to-current-position.html View 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/media/video-seek-to-current-position-expected.txt View 1 chunk +21 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 2 chunks +5 lines, -20 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Srirama
This is to land acolwell's patch https://codereview.chromium.org/340553004/ Regarding the failed test cases: The test cases ...
6 years, 4 months ago (2014-07-31 16:50:37 UTC) #1
Srirama
On 2014/07/31 16:50:37, Srirama wrote: > This is to land acolwell's patch https://codereview.chromium.org/340553004/ > Regarding ...
6 years, 4 months ago (2014-07-31 18:12:20 UTC) #2
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 4 months ago (2014-07-31 18:21:52 UTC) #3
Srirama
The CQ bit was unchecked by srirama.m@samsung.com
6 years, 4 months ago (2014-07-31 18:21:54 UTC) #4
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/431903003/diff/20001/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/431903003/diff/20001/LayoutTests/media/media-controller-effective-playback-rate.html#newcode31 LayoutTests/media/media-controller-effective-playback-rate.html:31: waitForEventOnce("play", play); nit: Why not simply wait for playing ...
6 years, 4 months ago (2014-07-31 18:55:53 UTC) #5
Srirama
PTAL https://codereview.chromium.org/431903003/diff/20001/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/431903003/diff/20001/LayoutTests/media/media-controller-effective-playback-rate.html#newcode31 LayoutTests/media/media-controller-effective-playback-rate.html:31: waitForEventOnce("play", play); On 2014/07/31 18:55:53, acolwell wrote: > ...
6 years, 4 months ago (2014-07-31 19:37:26 UTC) #6
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/431903003/diff/60001/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/431903003/diff/60001/LayoutTests/media/media-controller-effective-playback-rate.html#newcode31 LayoutTests/media/media-controller-effective-playback-rate.html:31: waitForEventOnce("playing", function() { nit: { on next line. ...
6 years, 4 months ago (2014-07-31 20:00:16 UTC) #7
Srirama
https://codereview.chromium.org/431903003/diff/60001/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/431903003/diff/60001/LayoutTests/media/media-controller-effective-playback-rate.html#newcode31 LayoutTests/media/media-controller-effective-playback-rate.html:31: waitForEventOnce("playing", function() { On 2014/07/31 20:00:16, acolwell wrote: > ...
6 years, 4 months ago (2014-07-31 20:20:18 UTC) #8
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 4 months ago (2014-07-31 20:20:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srirama.m@samsung.com/431903003/80001
6 years, 4 months ago (2014-07-31 20:21:05 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-07-31 21:17:59 UTC) #11
commit-bot: I haz the power
Change committed as 179347
6 years, 4 months ago (2014-07-31 21:41:50 UTC) #12
alancutter (OOO until 2018)
A revert of this CL has been created in https://codereview.chromium.org/431273003/ by alancutter@chromium.org. The reason for ...
6 years, 4 months ago (2014-08-01 05:57:07 UTC) #13
Srirama
On 2014/08/01 05:57:07, alancutter wrote: > A revert of this CL has been created in ...
6 years, 4 months ago (2014-08-08 06:56:09 UTC) #14
Srirama
On 2014/08/08 06:56:09, Srirama wrote: > On 2014/08/01 05:57:07, alancutter wrote: > > A revert ...
6 years, 4 months ago (2014-08-08 16:32:33 UTC) #15
DaleCurtis
This may be related to http://crbug.com/400442 which I just landed a fix for. Otherwise it ...
6 years, 4 months ago (2014-08-08 19:21:16 UTC) #16
Srirama
6 years, 4 months ago (2014-08-11 06:30:25 UTC) #17
Message was sent while issue was closed.
On 2014/08/08 19:21:16, DaleCurtis wrote:
> This may be related to http://crbug.com/400442 which I just landed a fix for. 
> Otherwise it could be negatively impacting splice frames in some way.  I'd
have
> to take a closer look, but I think you're on the right track.

Great, i have verified and it is fixed with your changes. Thanks you so much, i
was wondering how to fix this issue as i don't have much idea on the chromium
side code.
I ran the test case with 1000 iterations (run-webkit-tests -- iterations=1000
mediasource-duration.html) and it is passing all. Before the fix it used to fail
2 or 3 times out of 10 iterations.
I will land this CL again now.

Powered by Google App Engine
This is Rietveld 408576698