aboutsummaryrefslogtreecommitdiffstats
path: root/live
diff options
context:
space:
mode:
Diffstat (limited to 'live')
-rw-r--r--live/server.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/live/server.js b/live/server.js
index 3238574..9bba15c 100644
--- a/live/server.js
+++ b/live/server.js
@@ -84,8 +84,10 @@ const ADMINS = Array.isArray(CONFIG.admins) ? CONFIG.admins : ['98ae4da926c471c2
const ALERT_SK = /^[0-9a-f]{64}$/.test(CONFIG.alertSk || '') ? Uint8Array.from(Buffer.from(CONFIG.alertSk, 'hex')) : null;
const NAME_MIN_AGE = +(process.env.LIVE_NAME_MIN_AGE_H || 24) * 3600_000;
const DM_RELAYS = ['wss://relay.coinos.io', 'wss://relay.damus.io', 'wss://nos.lol'];
-const WINDOW = 8; // segments in the live playlist
-const SEG = 2; // seconds a segment
+const WINDOW = 10; // segments in the live playlist
+// seconds a segment: a player starts about three segments behind the live
+// edge, so this is most of a viewer's delay (2 s segments: 8.6 s behind)
+const SEG = 1;
mkdirSync(DATA, { recursive: true });
const REMOVED = `${DATA}/.removed`;