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

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

Created:
6 years, 6 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 4 months ago
Reviewers:
philipj_slow, adamk
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

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

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase and address CR comment #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -22 lines) Patch
M LayoutTests/media/media-controller-effective-playback-rate.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/media-controller-playbackrate.html View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/media/video-seek-to-current-position.html View 1 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/media/video-seek-to-current-position-expected.txt View 1 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: 13 (0 generated)
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/340553004/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html File LayoutTests/media/media-controller-effective-playback-rate.html (right): https://codereview.chromium.org/340553004/diff/1/LayoutTests/media/media-controller-effective-playback-rate.html#newcode16 LayoutTests/media/media-controller-effective-playback-rate.html:16: waitForEventOnce("canplay",canplay); This change and the other one like it ...
6 years, 6 months ago (2014-06-17 21:52:36 UTC) #1
acolwell GONE FROM CHROMIUM
6 years, 6 months ago (2014-06-17 22:14:11 UTC) #2
adamk
lgtm, but philipj definitely has a better understanding of this code at this point
6 years, 6 months ago (2014-06-17 23:08:40 UTC) #3
philipj_slow
LGTM with enthusiasm. This also fixes a test in web-platform-tests I wrote targeting this bug: ...
6 years, 6 months ago (2014-06-18 09:03:41 UTC) #4
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/340553004/diff/1/LayoutTests/media/video-seek-to-current-position.html File LayoutTests/media/video-seek-to-current-position.html (right): https://codereview.chromium.org/340553004/diff/1/LayoutTests/media/video-seek-to-current-position.html#newcode38 LayoutTests/media/video-seek-to-current-position.html:38: if (seekedCount == 3) { On 2014/06/18 09:03:41, philipj ...
6 years, 6 months ago (2014-06-18 17:02:41 UTC) #5
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 6 months ago (2014-06-18 17:02:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/340553004/20001
6 years, 6 months ago (2014-06-18 17:03:08 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 18:53:42 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/12419)
6 years, 6 months ago (2014-06-18 18:53:43 UTC) #9
philipj_slow
Is this still good for landing, or are the failing tests indicative of a real ...
6 years, 5 months ago (2014-07-17 11:49:35 UTC) #10
acolwell GONE FROM CHROMIUM
On 2014/07/17 11:49:35, philipj wrote: > Is this still good for landing, or are the ...
6 years, 5 months ago (2014-07-17 14:32:25 UTC) #11
Srirama
On 2014/07/17 14:32:25, acolwell wrote: > On 2014/07/17 11:49:35, philipj wrote: > > Is this ...
6 years, 5 months ago (2014-07-25 15:02:47 UTC) #12
acolwell GONE FROM CHROMIUM
6 years, 5 months ago (2014-07-25 16:02:30 UTC) #13
On 2014/07/25 15:02:47, Srirama wrote:
> On 2014/07/17 14:32:25, acolwell wrote:
> > On 2014/07/17 11:49:35, philipj wrote:
> > > Is this still good for landing, or are the failing tests indicative of a
> real
> > > problem?
> > 
> > There was a real problem, but I think it might be resolved by now. I just
> > haven't had a chance to rebase and try again. It is on my TODO list.
> 
> Hi Aaron,
> If you are busy with other priority work, can i try landing this one if you
> don't mind?

Sure. I think this patch is almost there. I rebased yesterday and it appears
that there is still an issue with some media controller tests. It isn't clear to
me if there is a real problem or if the test just needs to be updated because it
was relying on something that it should have. Please upload my original patch
first and then upload any followup changes you make. That will make it easier to
see what you've changed from what I have here.

Thanks.

Powered by Google App Engine
This is Rietveld 408576698