aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-18 08:16:57 -0700
committerAdam Soltys <[email protected]>2026-10-18 08:17:11 -0700
commita9cdc8a6fd7abd38a185f9d8828531374307cf41 (patch)
tree04aa9267fcc9538f50ccf0319fa094e16a05934f /build.js
parent88194134aebe4a516f32afd39ac95cc757024e9b (diff)
downloadcoinosv3-a9cdc8a6fd7abd38a185f9d8828531374307cf41.tar.gz
coinosv3-a9cdc8a6fd7abd38a185f9d8828531374307cf41.zip
Live rings and going live. A face whose person is streaming wears a red ring (LIVE under the bigger ones) and opens the stream. Go live (the composer's red dot, or your profile) sends your camera or screen to coinos's live server (coinosv3-server live/: the recording over a WebSocket, HLS out), announces it as your kind 30311 once three segments exist (Chrome's own player won't start a live playlist with fewer), refreshes it each minute with how many watch, reconnects to the same stream if the link drops, and ends it with its recording. Needs a coinos name. Also: the service worker leaves /live/ and /vmedia/hls alone (it froze a live playlist at its first copy).
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'build.js')
-rw-r--r--build.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.js b/build.js
index 163e9dc..6a10eda 100644
--- a/build.js
+++ b/build.js
@@ -86,6 +86,10 @@ self.addEventListener('fetch', (e) => {
// Feed snapshots have their own short HTTP lifetime; never freeze one in Cache Storage.
if (u.pathname === '/api/feed') return;
+ // Streams: a live playlist grows every two seconds (frozen at its first
+ // copy, the player stalled and failed), and video segments would fill the
+ // cache with what's already been watched.
+ if (u.pathname.startsWith('/live/') || u.pathname.startsWith('/vmedia/hls')) return;
if (req.mode === 'navigate') {
// A note page comes back with its thread rendered into it (the server's