You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/27 12:00:34 UTC

[GitHub] [cordova-android] shreeshailsg opened a new issue #1358: HTML5 Audio and Video not working on app background and lock screen.

shreeshailsg opened a new issue #1358:
URL: https://github.com/apache/cordova-android/issues/1358


   # Bug Report
   HTML5 audio and video are not working on app background and lock screen.
   
   ## Problem
   Android project built on cordova-android 9.0 version. When user plays audio and video on webview it's working fine but as soon as app goes to background/lock it stops playing. And even music controls are not showing up on lock screen.
   
   ### What is expected to happen?
   Even though app goes to background or on lock screen user has to get music controls to play/pause the media.
   
   
   ### What does actually happen?
   Music controls are not showing up and media stops playing on app background and lock screen
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   <video #videoPlayer class="html5-player" width="100%" controls controlsList="nodownload" playsinline [src]="videoUrl">
   Your browser does not support the video tag.
   </video>
   
   <video #audioPlayer class="html5-player" width="100%" controls controlsList="nodownload" playsinline [src]="videoUrl" type="audio/mp3">
   Your browser does not support the video tag.
   </video>
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Android, On all android devices.
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   cordova-android v9.0, 
   Android Studio v4.0.1
   Operating System: Mac OS 10.14
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org