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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.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/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..b838fbb6c85581ba043d70d81a604ce462bf151c 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -2275,6 +2275,11 @@ void HTMLMediaElement::requestRemotePlaybackControl() {
webMediaPlayer()->requestRemotePlaybackControl();
}
+void HTMLMediaElement::requestRemotePlaybackStop() {
+ if (webMediaPlayer())
+ webMediaPlayer()->requestRemotePlaybackStop();
+}
+
void HTMLMediaElement::closeMediaSource() {
if (!m_mediaSource)
return;

Powered by Google App Engine
This is Rietveld 408576698