Skip to content

[proposal] prevent sleep if fullscreen

jean-emmanuel requested to merge github/fork/MartinHN/pr/nosleep into master

Created by: MartinHN

hi, preventing sleep is a critical feature I think, the usability of any interface becomes really low if you need to wake the app up often or if you need to manage sleep mode externaly..

So I just added nosleep.js to prevent sleep when fullscreen is toggled.

under the hood, nosleep just add an invisible video and sets play on it to prevent the browser to go to sleep, hackish, but working...

we may need to check that it doesn't alter global performance, but I'm not sure how..

Merge request reports