-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(android): Adding playAudioWhenScreenIsLocked for Android (CB-12146) #137
base: master
Are you sure you want to change the base?
Conversation
When loosing focus of the app in android (onPause()) the audio playback is paused if playAudioWhenScreenIsLocked is set to false.
Old PR: #121 One question: |
Let there be tests |
Hmm, looks like all three CI runs against Android (4.4, 5.1, and 6.0) failed. Output for these three test runs:
All three fail because of a missing import,
We cannot accept this PR if it causes Cordova apps that add the plugin to not be able to compile. |
Let there be tests |
(hopefully this triggers the CI) |
Sweet, I'm down with merging this in. Small nit: if you could rebase w/ latest master and combine the commits into one that'd be fantastic! @infil00p any concerns from you on this one? Worth noting that the media plugin will likely be sunset down the road, in favour of the Media Capture plugin (which is more aligned with the latest W3C specs). For more info, see CB-12714. |
When loosing focus of the app in android (onPause()) the audio playback is paused when playAudioWhenScreenIsLocked is set to false.
Platforms affected
Android
What does this PR do?
Adds the playAudioWhenScreenIsLocked flag to the Android version. This makes it possible to selectively keep audios playing, when onPause is called.
What testing has been done on this change?
Manual testing on Android N
Checklist