DescriptionMake 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() #Messages
Total messages: 8 (0 generated)
|