diff --git a/5E.md b/5E.md index badecae3..b4b70752 100644 --- a/5E.md +++ b/5E.md @@ -42,11 +42,10 @@ Example: "m video/mp4", "d 1080p-fmp4" ], - ["t", "hashtag"] - ["starts", ""], - ["ends", ""], + ["t", "hashtag"], ["relays", "wss://one.com", "wss://two.com", /*...*/], ["pinned", ""], + ["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":[""],"#d":["1080p"],"limit":10}` +`{"kinds":[1063],"#e":[""],"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) diff --git a/README.md b/README.md index ff7e9bb7..4ec5342a 100644 --- a/README.md +++ b/README.md @@ -102,9 +102,11 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos - [NIP-96: HTTP File Storage Integration](96.md) - [NIP-98: HTTP Auth](98.md) - [NIP-99: Classified Listings](99.md) +- [NIP-5E: Nostr Live Streams](5E.md) - [NIP-B0: Web Bookmarks](B0.md) - [NIP-B7: Blossom](B7.md) - [NIP-C0: Code Snippets](C0.md) +- [NIP-7D: Threads](7D.md) - [NIP-C7: Chats](C7.md) ## Event Kinds @@ -147,6 +149,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | `1021` | Bid | [15](15.md) | | `1022` | Bid confirmation | [15](15.md) | | `1040` | OpenTimestamps | [03](03.md) | +| `1053` | Live Stream | [5E](5E.md) | | `1059` | Gift Wrap | [59](59.md) | | `1063` | File Metadata | [94](94.md) | | `1068` | Poll | [88](88.md) |