mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make MediaSession handle embedder requested action
This commit is contained in:
parent
6233f78de4
commit
fa61191405
2 changed files with 9 additions and 1 deletions
|
@ -3941,7 +3941,10 @@ impl ScriptThread {
|
|||
browsing_context_id: TopLevelBrowsingContextId,
|
||||
action: MediaSessionActionType,
|
||||
) {
|
||||
// TODO
|
||||
match self.media_sessions.borrow().get(&browsing_context_id) {
|
||||
Some(session) => session.handle_action(action),
|
||||
None => warn!("No MediaSession for this browsing context"),
|
||||
};
|
||||
}
|
||||
|
||||
pub fn enqueue_microtask(job: Microtask) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue