upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/5E.md
diff options
context:
space:
mode:
authorKieran <kieran@harkin.me>2025-07-17 12:27:50 +0100
committerKieran <kieran@harkin.me>2025-07-17 12:28:42 +0100
commit5f33a3d341bae5fa200f3d7551e13a2ff520104b (patch)
tree15e0d61260ea0adb9efabcc0e6586645019ac2d5 /5E.md
parent39fbfb5ada692dcbec0a699e82bd963ebda583c5 (diff)
minor updates
Diffstat (limited to '5E.md')
-rw-r--r--5E.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/5E.md b/5E.md
index badecae..b4b7075 100644
--- a/5E.md
+++ b/5E.md
@@ -42,11 +42,10 @@ Example:
42 "m video/mp4", 42 "m video/mp4",
43 "d 1080p-fmp4" 43 "d 1080p-fmp4"
44 ], 44 ],
45 ["t", "hashtag"] 45 ["t", "hashtag"],
46 ["starts", "<unix timestamp in seconds>"],
47 ["ends", "<unix timestamp in seconds>"],
48 ["relays", "wss://one.com", "wss://two.com", /*...*/], 46 ["relays", "wss://one.com", "wss://two.com", /*...*/],
49 ["pinned", "<event id of pinned live chat message>"], 47 ["pinned", "<event id of pinned live chat message>"],
48 ["goal", "<event id of stream goal>"]
50 ], 49 ],
51 "content": "", 50 "content": "",
52 // other fields... 51 // other fields...
@@ -96,11 +95,11 @@ Clients wishing to implement a player should use [MSE](https://developer.mozilla
96 95
97Other services MAY provide a compatability layer with [NIP-53](53.md) live streams by producing HLS playlists over a N94 Stream. 96Other services MAY provide a compatability layer with [NIP-53](53.md) live streams by producing HLS playlists over a N94 Stream.
98 97
99Clients SHOULD follow only a single variant by using a filter like this: 98Clients SHOULD listen for new segments using a filter like this:
100 99
101`{"kinds":[1063],"#e":["<id-of-kind-5053>"],"#d":["1080p"],"limit":10}` 100`{"kinds":[1063],"#e":["<id-of-kind-1053>"],"limit":10}`
102 101
103Leaving the subscription open will allow clients to be notified immediately as segments are published and can fetch those segments and append them to the player buffer. 102Leaving the subscription open will allow clients to be notified immediately as segments are published and can fetch those segments and append them to the player buffer, enabling live playback without delays.
104 103
105### Producers 104### Producers
106 105
@@ -116,4 +115,4 @@ Using `expiration` tags on N94 segments and deleting segment files from servers
116 115
117### Producer 116### Producer
118 117
119[zap-stream-core](https://github.com/v0l/zap-stream-core/blob/ccb2add6073e5bb68191c42613c34f66583e34fc/crates/zap-stream/src/overseer.rs#L340-L380) 118[n94](https://github.com/v0l/zap-stream-core/tree/main/crates/n94)