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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Fixed mocks Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 56ad755a6e9c9743151d0a62dc99d5335758bdd9..b62197f3d0c001966e32c7aa609a2cc0632485fa 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -3093,7 +3093,7 @@ void HTMLMediaElement::connectedToRemoteDevice() {
if (mediaControls())
mediaControls()->startedCasting();
if (remotePlaybackClient())
- remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected);
+ remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connecting);
}
void HTMLMediaElement::disconnectedFromRemoteDevice() {
@@ -3109,6 +3109,11 @@ void HTMLMediaElement::cancelledRemotePlaybackRequest() {
remotePlaybackClient()->promptCancelled();
}
+void HTMLMediaElement::remotePlaybackStarted() {
+ if (remotePlaybackClient())
+ remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected);
+}
+
void HTMLMediaElement::requestReload(const WebURL& newUrl) {
DCHECK(webMediaPlayer());
DCHECK(!m_srcObject);

Powered by Google App Engine
This is Rietveld 408576698