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 "main": {
7 "type": "object",
8 "required": ["videos"],
9 "properties": {
10 "videos": {
11 "type": "array",
12 "items": { "type": "ref", "ref": "#video" },
13 "minItems": 1,
14 "maxItems": 10
15 }
16 }
17 },
18 "video": {
19 "type": "object",
20 "required": ["video"],
21 "properties": {
22 "name": {
23 "type": "string",
24 "maxLength": 128
25 },
26 "video": {
27 "type": "blob",
28 "description": "The mp4 video file. May be up to 100mb, formerly limited to 50mb.",
29 "accept": ["video/mp4"],
30 "maxSize": 100000000
31 },
32 "captions": {
33 "type": "array",
34 "items": { "type": "ref", "ref": "#caption" },
35 "maxLength": 20
36 },
37 "alt": {
38 "type": "string",
39 "description": "Alt text description of the video, for accessibility.",
40 "maxGraphemes": 1000,
41 "maxLength": 10000
42 },
43 "dimensions": {
44 "type": "union",
45 "refs": [
46 "app.bsky.embed.defs#aspectRatio",
47 "sh.weaver.embed.defs#percentSize",
48 "sh.weaver.embed.defs#pixelSize"
49 ]
50 }
51 }
52 },
53 "caption": {
54 "type": "object",
55 "required": ["lang", "file"],
56 "properties": {
57 "lang": {
58 "type": "string",
59 "format": "language"
60 },
61 "file": {
62 "type": "blob",
63 "accept": ["text/vtt"],
64 "maxSize": 20000
65 }
66 }
67 },
68 "view": {
69 "type": "object",
70 "required": ["cid", "playlist"],
71 "properties": {
72 "cid": { "type": "string", "format": "cid" },
73 "playlist": { "type": "string", "format": "uri" },
74 "thumbnail": { "type": "string", "format": "uri" },
75 "alt": {
76 "type": "string",
77 "maxGraphemes": 1000,
78 "maxLength": 10000
79 },
80 "name": {
81 "type": "string",
82 "maxLength": 128
83 },
84 "dimensions": {
85 "type": "union",
86 "refs": [
87 "app.bsky.embed.defs#aspectRatio",
88 "sh.weaver.embed.defs#percentSize",
89 "sh.weaver.embed.defs#pixelSize"
90 ]
91 }
92 }
93 }
94 }
95}