richtr / NoSleep.js

Prevent display sleep and enable wake lock in any Android or iOS web browser.
MIT License
2.23k stars 380 forks source link

Android has other solution? #74

Closed MarsCaiWORD closed 3 years ago

MarsCaiWORD commented 5 years ago

There are a lot of problems with playing videos. The first thing you need to do is click to play. Second, some strange bugs appear in some browsers.
Android has other solution?

facorread commented 5 years ago

The purpose of the Issues tab is to notify developers and contribute work on concrete issues in the source code of NoSleep.js. You can help out by reporting issues documenting each of those strange bugs you have observed.

NoSleep.js is not a perfect package and I am sure you can Google around for other solutions for Android.

MarsCaiWORD commented 5 years ago

@facorread ok , I have searched google for this problem, but there is no solution. so i want to know has other , Thank you for your reply

matthewhartman commented 4 years ago

There is another solution coming soon - Wake Lock - https://web.dev/wakelock/

MarsCaiWORD commented 4 years ago

@matthewhartman I hope to support each browser

matthewhartman commented 4 years ago

Ah yeah, fair enough

richtr commented 3 years ago

Native wake lock API support was added to this library in https://github.com/richtr/NoSleep.js/pull/95. This library will then fallback to other methods if this API is unavailable.