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

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

Issue 2464163004: [RemotePlayback] Implement 'connecting' state (Closed)
Patch Set: Rebased 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 10170a6e5696c7e8b2b507a27d1e396d03bc0420..f0dab8753fd5f9b168c163be831c4374204d897b 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -3173,7 +3173,7 @@ void HTMLMediaElement::connectedToRemoteDevice() {
if (mediaControls())
mediaControls()->startedCasting();
if (remotePlaybackClient())
- remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected);
+ remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connecting);
}
void HTMLMediaElement::disconnectedFromRemoteDevice() {
@@ -3189,6 +3189,11 @@ void HTMLMediaElement::cancelledRemotePlaybackRequest() {
remotePlaybackClient()->promptCancelled();
}
+void HTMLMediaElement::remotePlaybackStarted() {
+ if (remotePlaybackClient())
+ remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected);
+}
+
bool HTMLMediaElement::isAutoplayingMuted() {
if (!isHTMLVideoElement() ||
!RuntimeEnabledFeatures::autoplayMutedVideosEnabled()) {

Powered by Google App Engine
This is Rietveld 408576698