Add iOS native app handoff doc - #71
Open
MMagTech wants to merge 2 commits into
Open
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Building the app against this doc surfaced two traps it pointed straight into, both of which fail silently — the station connects, the server counts a listener, the UI shows a healthy stream, and no audio comes out. The doc recommended `stream_url` over `/listen` for the player. That is backwards on iOS: iOS sniffs a media resource with a small `Range: bytes=0-1` probe before opening the real playback connection, and Icecast ignores the range and answers with an endless 200, so the probe never completes. The backend endpoint already handles exactly this (`_probe_range_end`), which is why it exists. Also added a warning against setting automaticallyWaitsToMinimizeStalling to false. It reads as the obvious choice for live radio, but it drops any play() issued before the item is .readyToPlay and never retries, leaving the player buffering at rate 0 while reporting .playing. Milestone 3 now says to confirm playback is audible rather than connected, since that distinction is the whole difficulty here. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Adds docs/IOS_APP_HANDOFF.md — the context document for starting native iOS app development on the Mac. Covers why native (the iOS PWA suspension bug), the listener API surface, AVPlayer/background-audio implementation notes, suggested repo layout (ios/ folder), and v1 milestones.
🤖 Generated with Claude Code