In HTML5, how can I keep an Android device’s screen on?

前端 未结 5 1619
挽巷
挽巷 2020-12-06 05:37

We are developing an App in HTML5 using jQuery.

Is there a way/method, in JavaScript or another technology, to keep the screen \"on\"?

5条回答
  •  不思量自难忘°
    2020-12-06 06:19

    I think there is another way doing it without any java code. You can add a video of 1 second with infinite repeat and hidden and it will do the trick. I have read it somewhere but i don't remember where.

    Maybe you could use one of the blank videos below:

    1. https://github.com/esc0rtd3w/blank-intro-videos
    2. https://github.com/kud/blank-video

    IT WORKS!

提交回复
热议问题