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

Issue 456343002: Relanding 'Always notify the MediaPlayer of any seek' patch (Closed)

Created:
6 years, 4 months ago by Srirama
Modified:
5 years, 11 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
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Relanding 'Always notify the MediaPlayer of any seek' patch 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 Original CL: https://codereview.chromium.org/431903003/ Depends on the chromium patch https://codereview.chromium.org/685993002/ Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188150

Patch Set 1 #

Patch Set 2 : Updated test case #

Patch Set 3 : Fixed test failure #

Total comments: 1

Patch Set 4 : Rebase #

Patch Set 5 : Fixed test failure #

Total comments: 1

Patch Set 6 : Fixed controls-restrained-media-controller.html failure #

Patch Set 7 : Fixed LayoutTests/media/video-double-seek-currentTime.html failure #

Total comments: 1

Patch Set 8 : Fixed test failures #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -36 lines) Patch
M LayoutTests/media/controls-timeline-with-controller.html View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M LayoutTests/media/controls-timeline-with-controller-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/media/media-controller-effective-playback-rate.html View 1 2 chunks +6 lines, -7 lines 0 comments Download
M LayoutTests/media/media-controller-effective-playback-rate-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/media/media-controller-playbackrate.html View 1 2 chunks +15 lines, -7 lines 1 comment 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 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/media/video-seek-to-current-position-expected.txt View 1 1 chunk +24 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -20 lines 0 comments Download

Messages

Total messages: 50 (4 generated)
Srirama
The regression caused previously (399523) was fixed by Dale Curtis (https://codereview.chromium.org/440803002) So i just uploaded ...
6 years, 4 months ago (2014-08-11 11:37:09 UTC) #1
acolwell GONE FROM CHROMIUM
On 2014/08/11 11:37:09, Srirama wrote: > The regression caused previously (399523) was fixed by Dale ...
6 years, 4 months ago (2014-08-11 17:18:31 UTC) #2
Srirama
On 2014/08/11 17:18:31, acolwell wrote: > On 2014/08/11 11:37:09, Srirama wrote: > > The regression ...
6 years, 4 months ago (2014-08-11 18:31:38 UTC) #3
acolwell GONE FROM CHROMIUM
On 2014/08/11 18:31:38, Srirama wrote: > On 2014/08/11 17:18:31, acolwell wrote: > > On 2014/08/11 ...
6 years, 4 months ago (2014-08-11 19:39:41 UTC) #4
DaleCurtis
+1, I should have clarified that I was looking for insight into why your patch ...
6 years, 4 months ago (2014-08-11 20:17:29 UTC) #5
Srirama
On 2014/08/11 20:17:29, DaleCurtis wrote: > +1, I should have clarified that I was looking ...
6 years, 4 months ago (2014-08-12 05:43:55 UTC) #6
Srirama
On 2014/08/12 05:43:55, Srirama wrote: > On 2014/08/11 20:17:29, DaleCurtis wrote: > > +1, I ...
6 years, 4 months ago (2014-08-12 18:44:22 UTC) #7
DaleCurtis
Thanks for investigating. I've emailed you the patch in case you still can't get it ...
6 years, 4 months ago (2014-08-12 22:32:10 UTC) #8
Srirama
On 2014/08/12 22:32:10, DaleCurtis wrote: > Thanks for investigating. I've emailed you the patch in ...
6 years, 4 months ago (2014-08-13 14:02:16 UTC) #9
acolwell GONE FROM CHROMIUM
What is the status of the investigation around this patch? I'd really like to see ...
6 years, 3 months ago (2014-09-08 19:13:38 UTC) #10
Srirama
On 2014/09/08 19:13:38, acolwell wrote: > What is the status of the investigation around this ...
6 years, 3 months ago (2014-09-09 14:03:52 UTC) #11
Srirama
On 2014/09/09 14:03:52, Srirama wrote: > On 2014/09/08 19:13:38, acolwell wrote: > > What is ...
6 years, 1 month ago (2014-10-28 14:26:54 UTC) #13
Srirama
On 2014/10/28 14:26:54, Srirama wrote: > On 2014/09/09 14:03:52, Srirama wrote: > > On 2014/09/08 ...
6 years, 1 month ago (2014-10-28 14:36:01 UTC) #14
DaleCurtis
Please upload your patch for webmediaplayer_impl as a separate review so we can see what ...
6 years, 1 month ago (2014-10-28 17:44:28 UTC) #15
Srirama
Rebased and uploaded the patch. Updated the test case LayoutTests/media/video-seek-to-current-position.html to include timeupdate event. This ...
6 years, 1 month ago (2014-10-30 11:10:48 UTC) #16
Srirama
On 2014/10/30 11:10:48, Srirama wrote: > Rebased and uploaded the patch. Updated the test case ...
6 years, 1 month ago (2014-10-30 13:04:18 UTC) #17
Srirama
Updated the test case media/controls-timeline-with-controller.html to fix the failure. Added seeked event to make sure ...
6 years, 1 month ago (2014-11-11 09:43:06 UTC) #19
philipj_slow
The Chromium patch has landed now, can you run the bots again to verify no ...
6 years, 1 month ago (2014-11-14 12:13:40 UTC) #20
philipj_slow
LGTM It seems fairly likely that some content is going to be affected by this ...
6 years, 1 month ago (2014-11-14 12:21:05 UTC) #21
Srirama
On 2014/11/14 12:21:05, philipj wrote: > LGTM > > It seems fairly likely that some ...
6 years, 1 month ago (2014-11-14 12:24:01 UTC) #22
philipj_slow
Bah, landing this change has turned out to be hard :)
6 years, 1 month ago (2014-11-14 12:45:33 UTC) #23
Srirama
Test Failure: media/controls-restrained-media-controller.html Image diff shows the frame is not painted, only controls are shown. ...
6 years ago (2014-12-12 12:57:43 UTC) #24
philipj_slow
That's a Chromium-side question I can't answer well. Dale?
6 years ago (2014-12-12 14:49:29 UTC) #25
DaleCurtis
Probably paused_time_ has drifted slightly from GetMediaTime somehow, so calling that method causes the paused_time_ ...
6 years ago (2014-12-12 23:03:15 UTC) #26
Srirama
Test is flaky, need to investigate more.
6 years ago (2014-12-14 11:57:45 UTC) #27
Srirama
@philip, what do you think of patchset5? I did a bit of analysis at chromium ...
6 years ago (2014-12-15 12:48:29 UTC) #28
Srirama
On 2014/12/15 12:48:29, Srirama wrote: > @philip, what do you think of patchset5? > I ...
6 years ago (2014-12-15 13:44:37 UTC) #29
philipj_slow
It's too bad we're spending time on MediaController again, but I'd like to understand what's ...
6 years ago (2014-12-15 14:52:38 UTC) #30
Srirama
On 2014/12/15 14:52:38, philipj wrote: > It's too bad we're spending time on MediaController again, ...
6 years ago (2014-12-15 15:47:19 UTC) #31
DaleCurtis
If there are issues with your previous patch, please revert it until you've figured out ...
6 years ago (2014-12-15 18:52:48 UTC) #32
philipj_slow
From comment #24 it sounds like the problem is a new seek before the previous ...
6 years ago (2014-12-15 19:51:53 UTC) #33
Srirama
On 2014/12/15 19:51:53, philipj wrote: > From comment #24 it sounds like the problem is ...
6 years ago (2014-12-16 03:03:35 UTC) #34
Srirama
On 2014/12/15 18:52:48, DaleCurtis wrote: > If there are issues with your previous patch, please ...
6 years ago (2014-12-16 05:36:46 UTC) #35
Srirama
On 2014/12/16 05:36:46, Srirama wrote: > On 2014/12/15 18:52:48, DaleCurtis wrote: > > If there ...
6 years ago (2014-12-16 05:39:51 UTC) #36
philipj_slow
Sounds like a fix on the Chromiums side is needed, then.
6 years ago (2014-12-16 09:54:27 UTC) #37
Srirama
On 2014/12/16 09:54:27, philipj wrote: > Sounds like a fix on the Chromiums side is ...
6 years ago (2014-12-16 09:59:23 UTC) #38
Srirama
PTAL at PatchSet7. Modified as per your suggestion with the help of webMediaPlayer()->seeking(). Updated LayoutTests/media/video-double-seek-currentTime.html ...
6 years ago (2014-12-17 13:48:28 UTC) #40
Srirama
Ping
6 years ago (2014-12-19 10:05:28 UTC) #41
philipj_slow
https://codereview.chromium.org/456343002/diff/160001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/456343002/diff/160001/Source/core/html/HTMLMediaElement.cpp#newcode2029 Source/core/html/HTMLMediaElement.cpp:2029: if (webMediaPlayer()->seeking() && time == m_lastSeekTime) I don't know, ...
6 years ago (2014-12-19 15:06:03 UTC) #42
Srirama
On 2014/12/19 15:06:03, philipj wrote: > https://codereview.chromium.org/456343002/diff/160001/Source/core/html/HTMLMediaElement.cpp > File Source/core/html/HTMLMediaElement.cpp (right): > > https://codereview.chromium.org/456343002/diff/160001/Source/core/html/HTMLMediaElement.cpp#newcode2029 > ...
6 years ago (2014-12-19 17:35:43 UTC) #43
philipj_slow
It sounds like you're not exactly sure about the root cause yet. If the problem ...
6 years ago (2014-12-19 22:38:42 UTC) #44
Srirama
On 2014/12/19 22:38:42, philipj wrote: > It sounds like you're not exactly sure about the ...
5 years, 11 months ago (2015-01-09 07:30:39 UTC) #45
philipj_slow
lgtm LGTM, I hope it sticks this time! https://codereview.chromium.org/456343002/diff/180001/LayoutTests/media/media-controller-playbackrate.html File LayoutTests/media/media-controller-playbackrate.html (left): https://codereview.chromium.org/456343002/diff/180001/LayoutTests/media/media-controller-playbackrate.html#oldcode7 LayoutTests/media/media-controller-playbackrate.html:7: var ...
5 years, 11 months ago (2015-01-09 14:10:25 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/456343002/180001
5 years, 11 months ago (2015-01-09 14:11:28 UTC) #48
commit-bot: I haz the power
Committed patchset #8 (id:180001) as https://src.chromium.org/viewvc/blink?view=rev&revision=188150
5 years, 11 months ago (2015-01-09 14:14:53 UTC) #49
Srirama
5 years, 11 months ago (2015-01-13 09:47:12 UTC) #50
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:180001) has been created in
https://codereview.chromium.org/848853003/ by srirama.m@samsung.com.

The reason for reverting is: Android perf bots failure in
media.android.tough_video_cases (timeout)
https://code.google.com/p/chromium/issues/detail?id=448092.

Powered by Google App Engine
This is Rietveld 408576698