diff options
| author | pablof7z <pfer@me.com> | 2024-09-28 17:39:41 -0500 |
|---|---|---|
| committer | pablof7z <pfer@me.com> | 2024-09-28 17:39:41 -0500 |
| commit | fcc32565795f3f60151cde030700159502186d71 (patch) | |
| tree | 2f400600397443e6b5896c24872da1f81b9b4321 /71.md | |
| parent | 9f9ab83ee9809251d0466f22c188a0f13abd585a (diff) | |
| parent | a736e629be5c4c9125d98bdb4965851d8110c483 (diff) | |
Merge branch 'master' into cashu-wallet
Diffstat (limited to '71.md')
| -rw-r--r-- | 71.md | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -2,11 +2,11 @@ NIP-71 | |||
| 2 | ====== | 2 | ====== |
| 3 | 3 | ||
| 4 | Video Events | 4 | Video Events |
| 5 | --------------- | 5 | ------------ |
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | This specification defines video events representing a dedicated post of externally hosted content. These video events are _parameterized replaceable_ and deletable per [NIP-09](09.md). | 9 | This specification defines video events representing a dedicated post of externally hosted content. These video events are _addressable_ and delete-requestable per [NIP-09](09.md). |
| 10 | 10 | ||
| 11 | Unlike a `kind 1` event with a video attached, Video Events are meant to contain all additional metadata concerning the subject media and to be surfaced in video-specific clients rather than general micro-blogging clients. The thought is for events of this kind to be referenced in a Netflix, YouTube, or TikTok like nostr client where the video itself is at the center of the experience. | 11 | Unlike a `kind 1` event with a video attached, Video Events are meant to contain all additional metadata concerning the subject media and to be surfaced in video-specific clients rather than general micro-blogging clients. The thought is for events of this kind to be referenced in a Netflix, YouTube, or TikTok like nostr client where the video itself is at the center of the experience. |
| 12 | 12 | ||
| @@ -16,7 +16,7 @@ There are two types of video events represented by different kinds: horizontal a | |||
| 16 | 16 | ||
| 17 | #### Format | 17 | #### Format |
| 18 | 18 | ||
| 19 | The format uses a parameterized replaceable event kind `34235` for horizontal videos and `34236` for vertical videos. | 19 | The format uses an _addressable event_ kind `34235` for horizontal videos and `34236` for vertical videos. |
| 20 | 20 | ||
| 21 | The `.content` of these events is a summary or description on the video content. | 21 | The `.content` of these events is a summary or description on the video content. |
| 22 | 22 | ||
| @@ -42,7 +42,7 @@ The list of tags are as follows: | |||
| 42 | * `p` (optional, repeated) 32-bytes hex pubkey of a participant in the video, optional recommended relay URL | 42 | * `p` (optional, repeated) 32-bytes hex pubkey of a participant in the video, optional recommended relay URL |
| 43 | * `r` (optional, repeated) references / links to web pages | 43 | * `r` (optional, repeated) references / links to web pages |
| 44 | 44 | ||
| 45 | ```json | 45 | ```jsonc |
| 46 | { | 46 | { |
| 47 | "id": <32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>, | 47 | "id": <32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>, |
| 48 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, | 48 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, |
| @@ -91,14 +91,14 @@ A video event view is a response to a video event to track a user's view or prog | |||
| 91 | 91 | ||
| 92 | ### Format | 92 | ### Format |
| 93 | 93 | ||
| 94 | The format uses a parameterized replaceable event kind `34237`. | 94 | The format uses an _addressable event_ kind `34237`. |
| 95 | 95 | ||
| 96 | The `.content` of these events is optional and could be a free-form note that acts like a bookmark for the user. | 96 | The `.content` of these events is optional and could be a free-form note that acts like a bookmark for the user. |
| 97 | 97 | ||
| 98 | The list of tags are as follows: | 98 | The list of tags are as follows: |
| 99 | * `a` (required) reference tag to kind `34235` or `34236` video event being viewed | 99 | * `a` (required) reference tag to kind `34235` or `34236` video event being viewed |
| 100 | * `d` (required) same as `a` reference tag value | 100 | * `d` (required) same as `a` reference tag value |
| 101 | * `viewed` (optional, repeated) timestamp of the user's start time in seconds, timestamp of the user's end time in seconds | 101 | * `viewed` (optional, repeated) timestamp of the user's start time in seconds, timestamp of the user's end time in seconds |
| 102 | 102 | ||
| 103 | 103 | ||
| 104 | ```json | 104 | ```json |