atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.embed.video",
4 "description": "A video embedded in a Weaver record (eg, a notebook entry).",
5 "defs": {
6 "caption": {
7 "type": "object",
8 "required": [
9 "lang",
10 "file"
11 ],
12 "properties": {
13 "file": {
14 "type": "blob",
15 "accept": [
16 "text/vtt"
17 ],
18 "maxSize": 20000
19 },
20 "lang": {
21 "type": "string",
22 "format": "language"
23 }
24 }
25 },
26 "main": {
27 "type": "object",
28 "required": [
29 "videos"
30 ],
31 "properties": {
32 "videos": {
33 "type": "array",
34 "items": {
35 "type": "ref",
36 "ref": "#video"
37 }
38 }
39 }
40 },
41 "video": {
42 "type": "object",
43 "required": [
44 "video"
45 ],
46 "properties": {
47 "alt": {
48 "type": "string",
49 "description": "Alt text description of the video, for accessibility.",
50 "maxLength": 10000,
51 "maxGraphemes": 1000
52 },
53 "captions": {
54 "type": "array",
55 "items": {
56 "type": "ref",
57 "ref": "#caption"
58 },
59 "maxLength": 20
60 },
61 "dimensions": {
62 "type": "union",
63 "refs": [
64 "app.bsky.embed.defs#aspectRatio",
65 "sh.weaver.embed.defs#percentSize",
66 "sh.weaver.embed.defs#pixelSize"
67 ]
68 },
69 "name": {
70 "type": "string",
71 "maxLength": 128
72 },
73 "video": {
74 "type": "blob",
75 "description": "The mp4 video file. May be up to 100mb, formerly limited to 50mb.",
76 "accept": [
77 "video/mp4"
78 ],
79 "maxSize": 100000000
80 }
81 }
82 },
83 "view": {
84 "type": "object",
85 "required": [
86 "cid",
87 "playlist"
88 ],
89 "properties": {
90 "alt": {
91 "type": "string",
92 "maxLength": 10000,
93 "maxGraphemes": 1000
94 },
95 "cid": {
96 "type": "string",
97 "format": "cid"
98 },
99 "dimensions": {
100 "type": "union",
101 "refs": [
102 "app.bsky.embed.defs#aspectRatio",
103 "sh.weaver.embed.defs#percentSize",
104 "sh.weaver.embed.defs#pixelSize"
105 ]
106 },
107 "name": {
108 "type": "string",
109 "maxLength": 128
110 },
111 "playlist": {
112 "type": "string",
113 "format": "uri"
114 },
115 "thumbnail": {
116 "type": "string",
117 "format": "uri"
118 }
119 }
120 }
121 }
122}