# Spec: Background audio for video playback (Android) **Status:** Draft **Scope:** Android only (v1). Linux noted as future work. **Branch base:** `android-picture-in-picture` **Requirements:** UR-040 → IR-025, JA-032, DR-051, DR-052 (see [requirements.md](../requirements.md)). Tests: UT-059, UT-060, UT-061, IT-013. ## Summary Add a per-player toggle that lets the **audio** of a video keep playing when the app is backgrounded or the screen is locked, while **video decoding stops**. When the app returns to the foreground, video decoding resumes from the current audio position. This is the audio-first counterpart to the existing Picture-in-Picture feature (which keeps the *whole video* decoding in a floating window). The two are mutually exclusive: enabling background audio suppresses auto-PiP. ## Motivation Users watching talk-heavy content (podcasts-as-video, lectures, music videos, concert films) want to lock the phone or switch apps and keep listening without draining battery on video decode or needing a visible floating window. ## Background: how playback actually works here Two facts drive the entire design (verified in code, not assumed): 1. **Video renders through the HTML5 `