Repository navigation
Station breaks on by default; signed-in listeners hear silence instead (0.46.0) - #302
Merged
Merged
Conversation
…e instead (0.46.0) New stations get a spot every 600 s unless asked for none (--breaks 0). nixamp.com signs a listen pass for a signed-in account (GET /api/v1/me/pass, credentialed from *.nixamp.com); a station page adds it to its stream link and the station checks it with nixamp.com (/api/v1/listen-pass/check, remembered). While the channel says a break is on, a pass holder's copy of a radio stream is silent MPEG Layer III frames lasting as long as the spot. TV keeps its breaks. The nixamp.com player treats a signed-in listener as paid: no client breaks. Co-Authored-By: Claude Opus 5.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.
Anthony: live.streaming isn't playing our ads every 10 minutes; on by default for free users; remove it for logged-in users.
--breaks 0for none). Six public live.streaming stations on server1 had none (set by hand already).src/listen-pass.ts: nixamp.com signsv1.<exp>.<hmac>for a signed-in account (GET /api/v1/me/pass, credentialed CORS for *.nixamp.com only); peers check it at/api/v1/listen-pass/checkand remember the answer.src/break-silence.ts: while the channel'splaylistAt === -1(a break), a pass holder's radio stream gets silent MPEG-1 L3 frames for the same duration. TV (fMP4) keeps breaks for everyone.paid: true, no client breaks.Tests: new test/listen-pass.test.ts; full suite 991 pass / 0 fail.
🤖 Generated with Claude Code