Closed reinhrst closed 7 months ago
So in https://polypane.app/experimental-web-platform-features/ they talk about a SystemWakeLock that is an experimental feature. The chrome issue here suggests you can also request a "system" lock (in addition to a "screen" lock)
Implemented in c5a460c
For instance, inferring or converting work.
So there are two things here. The easier is that one can use the https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API to make sure that the computer does not go to sleep (downside is that the screen stays on as well, and not locked.... Not ideal but we can add a tick-box for the user.
Secondly however Chrome gives tabs less power when it's not visible (see https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API and https://developer.chrome.com/docs/web-platform/page-lifecycle-api#faqs ). Now I'm pretty sure that I read some info a while back that you can request not to be throttled (and I remember this was behind an experimental flag.... but I don't seem to be able to find this anymore....
I guess worst case we can be playing some sound or update the tab, but this sucks...