Repository navigation
feat: live podcast broadcast at /api/v1/broadcast/live.mp3 + GROUPCALL_BROADCAST_CMD (0.18.0) - #61
Merged
Merged
Conversation
…runs GROUPCALL_BROADCAST_CMD (0.18.0) The relay POSTed its MP3 to nixamp's /api/ingest, which decodes into a pipe nobody reads, so a live show was never heard; and Telnyx refused the fork with a 422 (client_state was base64url; it is documented as base64). Now the mixed MP3 is served to every listener at /api/v1/broadcast/live.mp3 (with a few seconds of backlog), and GROUPCALL_BROADCAST_CMD runs when a show goes on the air with GROUPCALL_LIVE_URL/NAME, so golive can carry it to nixamp, live.streaming, backtoschool.help and pairux.com/@Moshcoding. ffmpeg's stdin is flushed after each write. A Telnyx refusal now logs its body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan1 finding(s) in the 7 file(s) this pull request changes. HIGH: 1
7 pre-existing finding(s) elsewhere in the repository — **HIGH**: 3 | **MEDIUM**: 4Not introduced by this pull request.
Snippets are redacted; ThreatCrush never prints matched credential material. |
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 2026-11-11: "when we record we should auto stream to nixamp and backtoschool.help ... and pairux.com/@Moshcoding".
The existing relay (TUI Weekly / Off The Record rooms, Riotcoder's leg forked by Telnyx) could never be heard:
/api/ingest, and nixamp's ingest decodes intopipe:1with stdout ignored, so nothing reaches a listener;streaming_start.client_statewas base64url, while Telnyx documents base64. That is the likely cause; the response body is now logged so the next attempt says for sure.Now:
GET /api/v1/broadcast/live.mp3(about 8 s of backlog so a listener starts with sound; 404 when nothing is on; streams end when the show ends);GROUPCALL_BROADCAST_CMDruns when a show goes on the air, withGROUPCALL_LIVE_URL/GROUPCALL_LIVE_NAMEin the env. On dev2 that isgolive start "$GROUPCALL_LIVE_URL" --live, which puts it on nixamp, live.streaming, backtoschool.help and pairux.com/@Moshcoding;GROUPCALL_BROADCAST_STREAM_KEYalone; theGROUPCALL_BROADCAST_NIXAMP_*vars are gone.New test/live-broadcast.test.ts drives the relay with real ffmpeg (skipped without it).
bun test118 pass,tsc --noEmitclean.🤖 Generated with Claude Code