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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp

Issue 2468303002: [RemotePlayback] Stop remote playback when disableRemotePlayback is set (Closed)
Patch Set: 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/modules/remoteplayback/RemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
index f8f23bc6320c42579794fc092e8dc11f6d53862f..1e1c7612d6d34a3415e95e2f08c071e24a48c927 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
@@ -268,6 +268,8 @@ void RemotePlayback::remotePlaybackDisabled() {
m_availabilityCallbacks.clear();
// TODO(avayvod): stop remote playback too. https://crbug.com/657566.
hubbe 2016/11/02 21:17:45 remove todo?
whywhat 2016/11/04 15:01:06 Done.
+ if (m_state != WebRemotePlaybackState::Disconnected)
+ m_mediaElement->requestRemotePlaybackStop();
mlamouri (slow - plz ping) 2016/11/03 16:12:40 What would happen if the state was `connecting` at
whywhat 2016/11/04 15:01:06 Replied.
}
void RemotePlayback::setV8ReferencesForCallbacks(

Powered by Google App Engine
This is Rietveld 408576698