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

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

Issue 1827853002: [Android, RemotePlayback] Implement HTMLMediaElement.remote.connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-availability
Patch Set: Created 4 years, 9 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4d4e353a1845a1ef49ae026a8adbfe81b4bc7683..70b17639ca5c943d4d3322e8c71b0e0dc2057d8d 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -2925,8 +2925,10 @@ void HTMLMediaElement::connectedToRemoteDevice()
m_playingRemotely = true;
if (mediaControls())
mediaControls()->startedCasting();
- if (remotePlaybackClient())
+ if (remotePlaybackClient()) {
+ remotePlaybackClient()->connectionResultReceived(true);
philipj_slow 2016/03/23 16:09:31 This is never called with false, can't the stateCh
whywhat 2016/03/23 18:33:45 Done. I'll need it later when I plumb the dialog c
remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected);
+ }
}
void HTMLMediaElement::disconnectedFromRemoteDevice()
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698