|
[MediaSession] Add playbackState attribute to Blink MediaSession and use it to determine playback state
This CL implements MediaSession.playbackState attribute, and
propagates the attribute through mojo to MediaSessionImpl. The
attribute is then used to determine the actual playback state.
Basically, the behavior change is: when the page media is
currently paused while playbackState is "playing", we show
a "pause" button instead of "playing" button.
Spec PR:
https://github.com/WICG/mediasession/pull/152
BUG= 674470
Committed: https://crrev.com/8fae3446b59330bb28aba760c7dbde3d7e80a6f7
Cr-Commit-Position: refs/heads/master@{#439375}
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+336 lines, -50 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaNotificationManager.java
|
View
|
1
2
3
4
5
|
3 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/session/media_session_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/session/media_session_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+26 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/session/media_session_impl_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+110 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/media/session/media_session_service_impl.h
|
View
|
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/media/session/media_session_service_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/media/session/mock_media_session_player_observer.h
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/media/session/mock_media_session_player_observer.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/dom/Window/resources/window-property-collector.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/media/mediasession/mediasession-playbackstate.html
|
View
|
1
2
3
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/media/mediasession/mediasession-playbackstate-expected.txt
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-action-reaches-client.html
|
View
|
1
2
3
4
|
3 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/media/mediasession/mojo/media-control-set-handler-notifies-service.html
|
View
|
1
2
3
4
|
6 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/media/mediasession/mojo/playback-state-propagated.html
|
View
|
1
2
3
|
1 chunk |
+39 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/media/mediasession/mojo/resources/mediasessionservice-mock.js
|
View
|
1
2
3
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/mediasession/MediaSession.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/mediasession/MediaSession.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+42 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/mediasession/MediaSession.idl
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/modules/mediasession/media_session.mojom
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
Total messages: 38 (26 generated)
|