diff options
| author | Adam Soltys <[email protected]> | 2026-10-18 07:53:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-18 07:53:03 -0700 |
| commit | 8b64ecab1a289b055bad3cb4b4427dc5a8a0ff96 (patch) | |
| tree | de3047d6abd0ec15c865e103c4fc1f30f60659ef /build.js | |
| parent | 972f668f669976317ac4b92fadb49c7a085aac30 (diff) | |
| download | coinosv3-8b64ecab1a289b055bad3cb4b4427dc5a8a0ff96.tar.gz coinosv3-8b64ecab1a289b055bad3cb4b4427dc5a8a0ff96.zip | |
Live streams (NIP-53), to watch: a row of what's on above a feed (Following: your follows' streams; Everything and Popular: all), a stream's own page at /naddr1… (the HLS stream playing — hls.js where the browser has no HLS — its chat and zaps as they come, a chat line sent as kind 1311, ⚡ to the host), a card for a post linking a stream, and a LIVE line on a streamer's profile. A stream quiet for an hour is over; one that drops is retried; zaps on a stream carry its a tag. Also: the single-file build's video stub gains streamVideo (its uploads threw since the HLS uploads).
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.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -350,7 +350,9 @@ async function bundleApp({ minify, features, staging, splitting = false }) { // (Mediabunny, ~700 KB) would ride along in a file meant to be small // and offline — there it uploads the original, as before ...(splitting ? [] : [{ name: 'no-video-compress', setup(build) { - build.onLoad({ filter: /src\/video-compress\.js$/ }, () => ({ loader: 'js', contents: 'export async function compressVideo(f) { return f; }' })); + build.onLoad({ filter: /src\/video-compress\.js$/ }, () => ({ loader: 'js', contents: 'export async function compressVideo(f) { return f; } export async function streamVideo() { return null; } export const STREAM_MIN_S = 90;' })); + // likewise hls.js (~400 KB): Firefox's player for live streams + build.onLoad({ filter: /src\/hls-player\.js$/ }, () => ({ loader: 'js', contents: 'export async function attachHls() { return null; }' })); } }])], }); if (!result.success) { |
