Add an opt-in 'background playback' setting (default off) that keeps audio playing on the native player when the app is backgrounded or the screen locks. Drives a media3 mediaPlayback foreground service via a setting reaction, started while the app is visible so Android 14+ grants it while-in-use. Includes ScreenLockAudioPolicy for the audio-only decision. Requires the matching plugin foreground-service support. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| stores | ||
| background_playback_setting_test.dart | ||