A few users have requested that my app keep the phone screen on while playing a video inside the WebView. I know how to request the wake lock for the screen to stay on but how do I know a video is playing inside the WebView?
The other question is, when they go full screen, I know at that point a video is playing full screen, is requesting a wake lock the only way to keep the screen on then?
Edit: the duplicate suggested solution only works on developer mode. Also this question is more about the WebView than how to keep the screen on.