-
Notifications
You must be signed in to change notification settings - Fork 768
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
CB-12146: (android) Adds support for "playAudioWhenScreenIsLocked" already used in iOS #121
Conversation
…and if the phone rings. In this patch we handle the playAudioWhenScreenIsLocked option and we must handle three cases independently * on Pause and onResume - pause depening if playAudioWhenScreenIsLocked is set for this audio player * AudioFocus (refactored) * phone ringing (refactored) We have three general states: * No paused sounds * All sounds paused * Sounds only paused if the playAudioWhenScreenIsLocked flag is set to false
Yes, I just wanted to wait with closing the other one until there is some activity on this one :) |
I would like to change the documentation. |
Hey @romedius, A docs pr would be great! I would suggest adding it as a normal option and maybe adding a quirks section for windows saying that it doesn't support the option. A first pass of the code looks good to me. I'll test it a bit more, but expect this to get merged and part of the next media plugin release! Thanks! |
@stevengill Hi! I will merge the functionality this week. |
Hey @romedius Can you rebase this? I'll merge it in |
New PR: |
Platforms affected
Android
What does this PR do?
Handle sound pausing and resuming on events like onPause, AudioFocus and if the phone rings.
In this patch we handle the playAudioWhenScreenIsLocked option and we must handle three cases independently
We have three general states:
What testing has been done on this change?
Manual testing on Nexus 5
Checklist