Skip to content

v0.33.284-master.4 — Android: next song plays with the screen locked, plus lock-screen controls - #77

Closed
ShowPilotFPP wants to merge 3 commits into
mainfrom
claude/pr-76
Closed

ShowPilotFPP wants to merge 3 commits into
mainfrom
claude/pr-76

Conversation

@ShowPilotFPP

Copy link
Copy Markdown
Owner
  • Bug fix: On Android, the next song now starts while the phone's screen is off or locked. Before, it waited until the screen was turned back on.
  • Feature update: Listen on Phone now shows a media notification and lock-screen controls with the song's title, artist, cover and the show name, a progress bar, and Play and Pause. (Not on iPhone/iPad yet.)

Main only (audio).

Source: #76

Co-authored-by: dev8edss 77666361+dev8edss@users.noreply.github.com


Generated by Claude Code

dev8edss and others added 3 commits November 14, 2026 21:47
On Android, Chrome slows or pauses the code of a page you can't see once
the tab stops playing sound, and the silent gap between songs counts as
not playing. The code that starts the next song then didn't run until the
screen was turned back on.

The player already plays a constant -80 dBFS DC level on Android to keep
the speaker stream open, but that is below the level Chrome counts as
sound (about -72 dBFS). While the player is open and not paused, the same
level is now raised to -60 dBFS: still a steady DC level no speaker can
reproduce, but enough for Chrome to keep the page running. It drops back
to -80 dBFS on Pause and 10 minutes after the show stops, so a phone left
on the page can sleep. ?keepawake=0 turns it off; ?keepawake=1 turns it
on off Android.

Also: a second startup() on the same audio context now stops the earlier
keep-alive source instead of adding another one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Browsers only show a media notification and lock-screen controls for a
playing <audio>/<video> element, and the player's sound comes from Web
Audio, which doesn't count. While listening, a looping <audio> element of
pure silence (a 10 s, 8 kHz WAV made in the page) now plays alongside the
music, and navigator.mediaSession carries the song's title, artist and
cover, the show name, a progress bar that follows the song, and Play and
Pause (seek and skip are off for a live show). The silent element carries
no music, so sync is unchanged. It follows the keep-awake state: playing
while listening, paused on Pause, 10 minutes after the show stops and when
the player closes.

On by default where the browser has Media Session, except iPhone and iPad
(not tested there yet); off inside the ShowPilot app. ?mediasession=0
turns it off; ?mediasession=1 turns it on anywhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… plus lock-screen controls

- Bug fix: On Android, the next song now starts while the phone's screen is off or locked. Before, it waited until the screen was turned back on.
- Feature update: Listen on Phone now shows a media notification and lock-screen controls with the song's title, artist, cover and the show name, a progress bar, and Play and Pause. (Not on iPhone/iPad yet.)

Main only (audio).

Source: #76

Co-authored-by: dev8edss <77666361+dev8edss@users.noreply.github.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01PJcoKLr2bhdUTsNw524TXK

Copy link
Copy Markdown
Owner Author

/ship


Generated by Claude Code

@github-actions

Copy link
Copy Markdown

Shipping this through ShipPilot… (started by @ShowPilotFPP)

@github-actions

Copy link
Copy Markdown

Shipped as v0.33.284-master.4 through ShipPilot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants