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

Issue 204803002: Make scrubbing a MediaControls-internal concept (Closed)

Created:
6 years, 9 months ago by philipj_slow
Modified:
6 years, 9 months ago
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Visibility:
Public.

Description

Make scrubbing a MediaControls-internal concept HTMLMediaElement::beginScrubbing() would setPausedInternal(true), a mode of pausing that is invisible to scripts. If a media controller was detached while scrubbing, HTMLMediaElement::endScrubbing() would never be called and the element would be stuck in this mode. Since a user can already pause, scrub and then continue playing, making MediaControls do the same should work just fine. Simply keep track of the state before scrubbing and avoid updating the play button(s) as long as we're scrubbing. Note that the special handling of ended() is not needed, since reaching the end of the resource pauses. This wasn't the case at the time the code was originally written. BUG=341813 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169814

Patch Set 1 #

Total comments: 4

Patch Set 2 : check mediaControllerInterface().paused() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -70 lines) Patch
M LayoutTests/media/controls-drag-timebar.html View 3 chunks +14 lines, -4 lines 0 comments Download
M LayoutTests/media/controls-drag-timebar-expected.txt View 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 1 chunk +0 lines, -27 lines 0 comments Download
M Source/core/html/MediaController.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/MediaController.cpp View 1 1 chunk +0 lines, -16 lines 0 comments Download
M Source/core/html/MediaControllerInterface.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 1 chunk +3 lines, -4 lines 0 comments Download
M Source/core/html/shadow/MediaControls.h View 3 chunks +8 lines, -2 lines 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 5 chunks +31 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
philipj_slow
PTAL. I'm not 100% happy with the test coverage for this change. I think only ...
6 years, 9 months ago (2014-03-19 17:29:15 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp#newcode278 Source/core/html/shadow/MediaControls.cpp:278: mediaControllerInterface().pause(); I have concerns that this doesn't appear to ...
6 years, 9 months ago (2014-03-20 00:16:35 UTC) #2
philipj_slow
https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp#newcode278 Source/core/html/shadow/MediaControls.cpp:278: mediaControllerInterface().pause(); On 2014/03/20 00:16:35, acolwell wrote: > I have ...
6 years, 9 months ago (2014-03-20 03:01:42 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp#newcode286 Source/core/html/shadow/MediaControls.cpp:286: mediaControllerInterface().play(); Should we put a mediaControllerInterface().paused() guard on ...
6 years, 9 months ago (2014-03-21 22:55:46 UTC) #4
philipj_slow
https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp File Source/core/html/shadow/MediaControls.cpp (right): https://codereview.chromium.org/204803002/diff/1/Source/core/html/shadow/MediaControls.cpp#newcode286 Source/core/html/shadow/MediaControls.cpp:286: mediaControllerInterface().play(); On 2014/03/21 22:55:47, acolwell_OOO_3-24 wrote: > Should we ...
6 years, 9 months ago (2014-03-23 17:43:41 UTC) #5
philipj_slow
The CQ bit was checked by philipj@opera.com
6 years, 9 months ago (2014-03-23 17:43:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/philipj@opera.com/204803002/20001
6 years, 9 months ago (2014-03-23 17:43:55 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-23 18:45:14 UTC) #8
Message was sent while issue was closed.
Change committed as 169814

Powered by Google App Engine
This is Rietveld 408576698