Flutter plugin to play audio in the background while the screen is off.
796
stars
476
forks
source link
Some Android devices are experiencing issues with the play and pause buttons in the notification tray. When users click on the stop button, the audio stops, but the play button does not appear. #1067
Yes! audio_service is designed to let you implement the audio logic however you want, using whatever plugins you want.
Actual behaviour
Some Android devices are experiencing issues with the background play and pause buttons.
Runtime error
It's not showing any errors in the console.
Minimal reproduction project
Official example: main.dart
Reproduction steps
This is a device-specific issue.
Run the example project on any of the tagged devices below.
In the background, the player is playing audio. Once the pause button is clicked, the audio pauses, but the background player does not update the pause button. When the button is clicked again, the same function is called again.
Output of flutter doctor
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.3 23D56 darwin-arm64, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.88.1)
[✓] Connected device (4 available)
[✓] Network resources
Documented behaviour
Yes! audio_service is designed to let you implement the audio logic however you want, using whatever plugins you want.
Actual behaviour
Some Android devices are experiencing issues with the background play and pause buttons.
Runtime error
Minimal reproduction project
Official example: main.dart
Reproduction steps
Output of flutter doctor
• No issues found!```
Devices exhibiting the bug