Skip to content

feat: live podcast broadcast at /api/v1/broadcast/live.mp3 + GROUPCALL_BROADCAST_CMD (0.18.0) - #61

Merged
ralyodio merged 1 commit into
mainfrom
feat/live-relay-golive
Nov 11, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/live-relay-golive

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

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:

  • it POSTed the MP3 to nixamp's /api/ingest, and nixamp's ingest decodes into pipe:1 with stdout ignored, so nothing reaches a listener;
  • the one attempt on dev2 (2026-11-10 10:46) got a 422 from Telnyx streaming_start. client_state was base64url, while Telnyx documents base64. That is the likely cause; the response body is now logged so the next attempt says for sure.

Now:

  • the mixed MP3 is served to any number of listeners at 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_CMD runs when a show goes on the air, with GROUPCALL_LIVE_URL / GROUPCALL_LIVE_NAME in the env. On dev2 that is golive start "$GROUPCALL_LIVE_URL" --live, which puts it on nixamp, live.streaming, backtoschool.help and pairux.com/@Moshcoding;
  • ffmpeg's stdin is flushed after each write (Bun's FileSink buffers);
  • the relay is enabled by GROUPCALL_BROADCAST_STREAM_KEY alone; the GROUPCALL_BROADCAST_NIXAMP_* vars are gone.

New test/live-broadcast.test.ts drives the relay with real ffmpeg (skipped without it). bun test 118 pass, tsc --noEmit clean.

🤖 Generated with Claude Code

…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>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

1 finding(s) in the 7 file(s) this pull request changes.

HIGH: 1

Severity Rule Location
HIGH js-ssrf-outbound-request src/server.ts:1084
7 pre-existing finding(s) elsewhere in the repository — **HIGH**: 3 | **MEDIUM**: 4

Not introduced by this pull request.

Severity Rule Location
HIGH secret-database-url bin/install.sh:239
HIGH js-ssrf-outbound-request public/sw.js:20
HIGH js-ssrf-outbound-request public/sw.js:25
MEDIUM redos-nested-quantifier ops/agent-phone.mjs:174
MEDIUM sql-template-interpolation src/db.ts:321
MEDIUM sql-template-interpolation src/db.ts:412
MEDIUM sql-template-interpolation src/db.ts:617

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit c45e85d into main Nov 11, 2026
5 checks passed
@ralyodio
ralyodio deleted the feat/live-relay-golive branch November 11, 2026 08:34
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.

1 participant