chuchuva opened a new issue, #1558:
URL: https://github.com/apache/cordova-android/issues/1558

   # Bug Report
   HTML5 videos fail to keep a device awake if playing if full screen
   
   
   ## Problem
   
   ### Command or Code
   
   Rerpro:
   
   1. Create a new Cordova project using `cordova create testVideo`
   2. Add Android platform: `cordova platform add android`
   3. Add this code to index.html, inside `body` tag:
   ```
   <video controls width="300" 
src="https://d2zihajmogu5jn.cloudfront.net/big-buck-bunny/bbb.mp4";></video>
   ```
   4. Run project on physical device using `cordova run android` 
   5. Start playing video
   6. Switch video to full screen
   7. Wait for some time
   
   ### What is expected to happen?
   Video should play keeping the device awake.
   
   
   ### What does actually happen?
   The screen goes dark after some time and then the device falls asleep (you 
can change display timeout in settings).
   
   
   ## Information
   If you do not switch to full screen the device stays awake as expected.
   
   If you reverse steps 5 and 6 (switch to full screen first then start playing 
video) then the device stays awake as expected. 😕 
   
   
   ### Environment, Platform, Device
   I tested on a tablet with Android version 9 and on a phone with Android 
version 8.
   
   
   
   ### Version information
   Cordova CLI: 11.1.0
   Cordova Android Platform: 10.1.2
   
   
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to