-
Notifications
You must be signed in to change notification settings - Fork 103
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
Paused audio resumes if app is suspended and then mic/speaker is released #148
Comments
I have the same issue and I found out a workaround. My workaround is override the "resume" function.
I use "play" and "pause" function from my app, so I don't need "resume" function. |
Brilliant! Thank you so much. Tried your work around, it worked great. |
…ecomment-490522070
The resume function exists for a reason! :( I think this issue has something to do with I can see that after phoning someone and ending a call that code below...
Perhaps the player state could be saved at |
Or... remove the listener when the player is paused and add the listener again when it is playing. I think this may fix some similar issue with iOS as well. |
Problem
If user pauses audio
opens up other app
uses speaker or recorder from other app
when that app releases the speaker/recorder, audio in my app resumes.
Desired Behaviour
Release of speaker by another app should only resume playback if playback was paused by that app taking the speaker.
Possible work around
I'm going to try calling release resources when app is suspended. Update: Haven't gotten this to work.
The text was updated successfully, but these errors were encountered: