diff options
| author | Adam Soltys <[email protected]> | 2026-10-19 07:56:19 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-19 07:56:19 -0700 |
| commit | 926fe1f1958396deac929013d88847f6703665b6 (patch) | |
| tree | 91cb19e9f0945d2bb1d4409e8811d1c25f9fce9e /feed/server.js | |
| parent | debbfaa1f0173d5be08fe40c27b12764f18d41ad (diff) | |
| download | coinosv3-server-926fe1f1958396deac929013d88847f6703665b6.tar.gz coinosv3-server-926fe1f1958396deac929013d88847f6703665b6.zip | |
live: WebRTC through Cloudflare's SFU (Realtime) for the app's viewers, a fraction of a second behind the broadcaster where HLS is 3.5 s. The server only brokers it, and the app's secret stays here ($LIVE_CONFIG sfuAppId/sfuSecret):
- POST /live/<id>/rtc/publish (the sender, NIP-98) pushes its tracks.
- POST /live/<id>/rtc/watch hands a viewer an offer of them, and /rtc/answer takes its answer.
/stats says which publish is current (rtc), and ?watching=1 counts a WebRTC viewer, who never fetches the playlist. HLS carries on as before, for the recording and the other nostr apps.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'feed/server.js')
0 files changed, 0 insertions, 0 deletions
