Files
SpotiFLAC-Mobile/third_party/audioplayers_android
zarzet 2899be8a53 fix(android): keep background playback resumable
Keep the media service foreground while paused, release CPU wake locks on pause, and demote the service on stop. Await native state publication before requesting audio focus, honor focus denial, and apply the initial MediaPlayer wake mode.

Validated with 141 playback tests and an Android 17 screen-off pause, resume, and stop integration test.
2026-10-23 20:52:10 +07:00
..

AudioPlayers


audioplayers_android

The Android implementation of audioplayers.

Mornye local changes

In addition to preserving granted proxy file descriptors, this fork exposes a player-specific setEqualizer method. On Android 9+, DynamicsProcessing attaches to that player's nonzero audio session and provides graphic EQ, preamp, balance, compression and limiting. Effects are released with the underlying player and restored by the playback deck after source preparation. Unsupported effects are reported to the editor without stopping playback. Direct USB and exclusive bit-perfect paths bypass these effects.

API reference: https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing

Usage

This package is endorsed, which means you can simply use audioplayers normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.