Repository navigation
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
Closed
ShowPilotFPP wants to merge 3 commits into
ShowPilotFPP wants to merge 3 commits into
Conversation
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
Owner
Author
|
/ship Generated by Claude Code |
|
Shipping this through ShipPilot… (started by @ShowPilotFPP) |
|
Shipped as v0.33.284-master.4 through ShipPilot. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main only (audio).
Source: #76
Co-authored-by: dev8edss 77666361+dev8edss@users.noreply.github.com
Generated by Claude Code