aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-10-18 22:29:11 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-11-20 13:33:51 +0100
commit08f9f17ed36c1102db51eaa1a88e6914757f2026 (patch)
treee11be5f0d186cf229103bf2cdf0dc1c60da97720 /components/script
parentb494acbf19b52feb122d7d52a84c735e6522a5f5 (diff)
downloadservo-08f9f17ed36c1102db51eaa1a88e6914757f2026.tar.gz
servo-08f9f17ed36c1102db51eaa1a88e6914757f2026.zip
Send MediaSessionAction from Android
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/htmlmediaelement.rs6
-rw-r--r--components/script/dom/mediasession.rs1
2 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs
index 3204871d459..14a667b8918 100644
--- a/components/script/dom/htmlmediaelement.rs
+++ b/components/script/dom/htmlmediaelement.rs
@@ -1913,12 +1913,6 @@ impl HTMLMediaElement {
self.media_element_load_algorithm();
}
}
-
- fn send_media_session_event(&self, event: MediaSessionEvent) {
- let global = self.global();
- let media_session = global.as_window().Navigator().MediaSession();
- media_session.send_event(event);
- }
}
// XXX Placeholder for [https://github.com/servo/servo/issues/22293]
diff --git a/components/script/dom/mediasession.rs b/components/script/dom/mediasession.rs
index ef64170f312..29d7108e3e3 100644
--- a/components/script/dom/mediasession.rs
+++ b/components/script/dom/mediasession.rs
@@ -61,6 +61,7 @@ impl MediaSession {
}
pub fn handle_action(&self, action: MediaSessionActionType) {
+ println!("HANDLE ACTION {:?}", action);
if let Some(handler) = self.action_handlers.borrow().get(&action) {
if handler.Call__(ExceptionHandling::Report).is_err() {
warn!("Error calling MediaSessionActionHandler callback");