mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-10 00:58:51 +00:00
minor updates
This commit is contained in:
13
5E.md
13
5E.md
@@ -42,11 +42,10 @@ Example:
|
||||
"m video/mp4",
|
||||
"d 1080p-fmp4"
|
||||
],
|
||||
["t", "hashtag"]
|
||||
["starts", "<unix timestamp in seconds>"],
|
||||
["ends", "<unix timestamp in seconds>"],
|
||||
["t", "hashtag"],
|
||||
["relays", "wss://one.com", "wss://two.com", /*...*/],
|
||||
["pinned", "<event id of pinned live chat message>"],
|
||||
["goal", "<event id of stream goal>"]
|
||||
],
|
||||
"content": "",
|
||||
// other fields...
|
||||
@@ -96,11 +95,11 @@ Clients wishing to implement a player should use [MSE](https://developer.mozilla
|
||||
|
||||
Other services MAY provide a compatability layer with [NIP-53](53.md) live streams by producing HLS playlists over a N94 Stream.
|
||||
|
||||
Clients SHOULD follow only a single variant by using a filter like this:
|
||||
Clients SHOULD listen for new segments using a filter like this:
|
||||
|
||||
`{"kinds":[1063],"#e":["<id-of-kind-5053>"],"#d":["1080p"],"limit":10}`
|
||||
`{"kinds":[1063],"#e":["<id-of-kind-1053>"],"limit":10}`
|
||||
|
||||
Leaving 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.
|
||||
Leaving 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.
|
||||
|
||||
### Producers
|
||||
|
||||
@@ -116,4 +115,4 @@ Using `expiration` tags on N94 segments and deleting segment files from servers
|
||||
|
||||
### Producer
|
||||
|
||||
[zap-stream-core](https://github.com/v0l/zap-stream-core/blob/ccb2add6073e5bb68191c42613c34f66583e34fc/crates/zap-stream/src/overseer.rs#L340-L380)
|
||||
[n94](https://github.com/v0l/zap-stream-core/tree/main/crates/n94)
|
||||
|
||||
Reference in New Issue
Block a user