bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
2.02k stars 846 forks source link

Auto pause and play when interrupted by a call or other apps' media #1854

Closed karthik986arre closed 1 week ago

karthik986arre commented 1 month ago

Checklist

Current bug behaviour

Keeps playing when interrupted by a call or other apps' media

Expected behaviour

  1. Audio players should pause when something played on other apps'
  2. Audio players should pause when interrupted by a call thereafter it must auto-play

Steps to reproduce

  1. Execute flutter run on the code sample
  2. Play any audio from asset or online source
  3. Interrupt via call or from other apps
  4. Audio player is not stopped, it keeps on playing.

Code sample

Code sample ```dart void main() { } ```

Affected platforms

Android

Platform details

No response

AudioPlayers Version

6.1.0

Build mode

No response

Audio Files/URLs/Sources

No response

Screenshots

No response

Logs

my relevant logs
Full Logs ``` my full logs or a link to a gist ``` Flutter doctor: ``` Output of: flutter doctor -v ```

Related issues / more information

No response

Working on PR

yeah

DenisMrGnusa commented 4 weeks ago

same issue here

Mapk26 commented 1 week ago

Same here, I also noticed that the player resumes playing audio after a missed call, even if it was previously stopped.