Chromium Code Reviews
Description[Media Router] Increment the media's current_time in the WebUI route controller
This CL replaces the is_paused attribute of the MediaRoute object with play_state
enum, and makes the WebUI route controller increment the current time of
the media every second if the enum value is PLAYING (not PAUSED/BUFFERING).
This is the second of the three (extension-side, browser-side, extension-side)
patches to allow the WebUI route controller to increment the current time (shown
on the seek bar) on its own while the media is playing:
1. Add play_state attribute to the extension side (cl/159493444)
2. Make the browser side use only play_state, and increment time on its own
(this patch)
3. Remove is_paused attribute and time-incrementing-logic from the extension
side
This CL must land after the CL #1 above.
BUG=731192
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2932933002
Cr-Commit-Position: refs/heads/master@{#481318}
Committed: https://chromium.googlesource.com/chromium/src/+/572110ec256c5a328a0cc6f17a893c27418410fb
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #Patch Set 5 : . #
Total comments: 10
Patch Set 6 : Address Daniel's and Derek's comments #Patch Set 7 : Check that we can increment in onRouteStatusChange_() #Messages
Total messages: 33 (27 generated)
|