I searched some forums like stackexchange and they were telling of technique called wakelock to keep a device on a website from dozing . But they seem outdated. Got a suggestion from somebody to embed a 1*1 pixel video loop on website so to keep device awake. But is making a 1*1 pixel looping video possible? Sometimes device goes to sleep even if a video is running (excluding youtube). Does anyone knows what programming can be done to achieve the desired effect? I require this for a purpose and it is related to an app.