Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep screen on with a webpage

I have a web app that streams text to a webpages, used for remote text interpretation. I there any fix to keep the users screens on while they are on the webpage?

The concern is most for mobile clients like iOS and Android, but to a smaller extent OSX and Windows

like image 805
FFno1 Avatar asked Oct 15 '25 04:10

FFno1


1 Answers

There's a trick: if the web page plays a web media file, the device will keep the screen lightopened. A js library NoSleep.js relies on this trick to provide what you're looking for.

Check this https://github.com/richtr/NoSleep.js

Regards, Cedric.

like image 196
Celepine Avatar answered Oct 17 '25 18:10

Celepine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!