moay / afterglow

HTML5 video player made easy.
http://afterglowplayer.com
MIT License
234 stars 47 forks source link

Sleep Mode #105

Closed anikahhh closed 4 years ago

anikahhh commented 4 years ago

I want to play a short video in loop in fullscreen mode without the sleep mode to turn on.

I'm simply using the code from the examples? When playing the video on the afterglow website it works fine. What am I missing here?

Thanks for any help

moay commented 4 years ago

Sleep mode is out of the scope of the video player. Thats something that browsers handle, you won't be able to force them to stay awake with a looping video. You could try to disable looping on the video player and then use events to replay the video when it ended. That could maybe do the trick, let me know if this works.