Hacker News new | ask | show | jobs
by podlp 140 days ago
How do sites stop background playback? I’m guessing there’s more than just FocusEvent on the window.
1 comments

The extension tackles two problems:

1) it deals with the browser normally pausing any media when you switch tabs/apps

2) it tells websites they are still in the foreground

To prevent any potential side-effects. These changes only apply when you start playing media on a website.