mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
MediaSessionAction message from embedder to script thread
This commit is contained in:
parent
7101a9d070
commit
6233f78de4
5 changed files with 97 additions and 3 deletions
|
@ -713,6 +713,16 @@ where
|
|||
);
|
||||
}
|
||||
},
|
||||
|
||||
WindowEvent::MediaSessionAction(ctx, a) => {
|
||||
let msg = ConstellationMsg::MediaSessionAction(ctx, a);
|
||||
if let Err(e) = self.constellation_chan.send(msg) {
|
||||
warn!(
|
||||
"Sending MediaSessionAction message to constellation failed ({:?}).",
|
||||
e
|
||||
);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue