audioplayers
audioplayers copied to clipboard
Incorrect playback status when using other media apps
Checklist
- [x] I read the troubleshooting guide before raising this issue
Current bug behaviour
When I use audiolayers to play audio, I open other media applications (such as Apple music), and the audiolayers stop playing. When I switch back to my own application and get the playing status through audioPlayer.state
, it is still PlayerState.playing
.
Expected behaviour
The current status should be PlayerState.paused
Steps to reproduce
- use audiolayers to play audio;
- open other media playing applications. At this time, audiolayers play has been paused.
- return to audiolayers to query the playing status
Environment information
- audioplayers version: 1.2.0
- OS name and version: iOS 16.1.2
- Device: iPhone11
- build mode:
debug
In version 5.1.0, I am also experiencing the same issue. Is there any way to restore the playback state?
I think we didn't consider or test this use case. Ideally the native platform should send a pause event or some of that kind.
use audio_service
sync status
We should fix this in our lib anyways. I'll keep it open.