You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 71.md
+64-53Lines changed: 64 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,60 @@ The format uses an _addressable event_ kind `34235` for horizontal videos and `3
20
20
21
21
The `.content` of these events is a summary or description on the video content.
22
22
23
-
The list of tags are as follows:
24
-
*`d` (required) universally unique identifier (UUID). Generated by the client creating the video event.
25
-
*`url` (required) the url to the video file
26
-
*`m` a string indicating the data type of the file. The [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) format must be used, and they should be lowercase.
23
+
The primary source of video information is the `imeta` tags which is defined in [NIP-92](92.md)
24
+
25
+
Each `imeta` tag can be used to specify a variant of the video by the `dim` & `m` properties.
Where `url` is the primary server url and `fallback` are other servers hosting the same file, both `url` and `fallback` should be weighted equally and clients are recommended to use any of the provided video urls.
67
+
68
+
The `image` tag contains a preview image (at the same resolution). Multiple `image` tags may be used to specify fallback copies in the same way `fallback` is used for `url`.
69
+
70
+
Additionally `service nip96` may be included to allow clients to search the authors NIP-96 server list to find the file using the hash.
71
+
72
+
### Other tags:
27
73
*`title` (required) title of the video
28
-
*`"published_at"`, for the timestamp in unix seconds (stringified) of the first time the video was published
29
-
*`x` containing the SHA-256 hexencoded string of the file.
30
-
*`size` (optional) size of file in bytes
31
-
*`dim` (optional) size of file in pixels in the form `<width>x<height>`
74
+
*`published_at`, for the timestamp in unix seconds (stringified) of the first time the video was published
32
75
*`duration` (optional) video duration in seconds
33
-
*`magnet` (optional) URI to magnet file
34
-
*`i` (optional) torrent infohash
35
76
*`text-track` (optional, repeated) link to WebVTT file for video, type of supplementary information (captions/subtitles/chapters/metadata), optional language code
36
-
*`thumb` (optional) url of thumbnail with same aspect ratio
37
-
*`image` (optional) url of preview image with same dimensions
38
77
*`content-warning` (optional) warning about content of NSFW video
39
78
*`alt` (optional) description for accessibility
40
79
*`segment` (optional, repeated) start timestamp in format `HH:MM:SS.sss`, end timestamp in format `HH:MM:SS.sss`, chapter/segment title, chapter thumbnail-url
@@ -53,19 +92,23 @@ The list of tags are as follows:
0 commit comments