3 ms·
https://github.com/richtr/NoSleep.js/ https://github.com/richtr/NoSleep.js/ I wonder if something like this will get "extended" to work for desktop browsers no
by MuffinFlavored 4y ago
https://github.com/richtr/NoSleep.js/ https://github.com/richtr/NoSleep.js/
I wonder if something like this will get "extended" to work for desktop browsers now if this needs to become more popular?
I think something simple like looping an empty audio or video file will suffice. Not that I agree with that from a "hijack the user's browser without their consent" perspective. Just spitballing workarounds.
- StillBored 4y agoThe firefox "Auto Tab Discard" I have is pretty aggressive in that it has a user selected list of conditions that allow an inactive tab to avoid being discarded (media playing/etc). So if the user hasn't explicitly allowed media playback to keep the tab from being discarded, if its in a background tab it gets discarded too. Hence why I put a media player I want to run in the background in its own tab and whitelist it.