mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 09:56:36 +00:00
Switch to listening to DOMAudioPlayback events
This commit is contained in:
@@ -68,6 +68,12 @@ class ZenMediaController {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('DOMAudioPlaybackStarted', (event) => {
|
||||
this.activateMediaControls(event.target.browsingContext.mediaController, event.target);
|
||||
});
|
||||
|
||||
window.addEventListener('DOMAudioPlaybackStopped', () => this.updateMuteState());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user