upleb.uk

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

summaryrefslogtreecommitdiff
path: root/71.md
diff options
context:
space:
mode:
Diffstat (limited to '71.md')
-rw-r--r--71.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/71.md b/71.md
index a811434..dd813e9 100644
--- a/71.md
+++ b/71.md
@@ -2,11 +2,11 @@ NIP-71
2====== 2======
3 3
4Video Events 4Video Events
5--------------- 5------------
6 6
7`draft` `optional` 7`draft` `optional`
8 8
9This 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). 9This 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
11Unlike 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. 11Unlike 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
19The format uses a parameterized replaceable event kind `34235` for horizontal videos and `34236` for vertical videos. 19The format uses an _addressable event_ kind `34235` for horizontal videos and `34236` for vertical videos.
20 20
21The `.content` of these events is a summary or description on the video content. 21The `.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
94The format uses a parameterized replaceable event kind `34237`. 94The format uses an _addressable event_ kind `34237`.
95 95
96The `.content` of these events is optional and could be a free-form note that acts like a bookmark for the user. 96The `.content` of these events is optional and could be a free-form note that acts like a bookmark for the user.
97 97
98The list of tags are as follows: 98The 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