author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/video", |
18 | 5 |
"title": "Video", |
16 | 6 |
"category": "media", |
18 | 7 |
"description": "Embed a video from your media library or upload a new one.", |
8 |
"keywords": [ "movie" ], |
|
9 |
"textdomain": "default", |
|
16 | 10 |
"attributes": { |
11 |
"autoplay": { |
|
12 |
"type": "boolean", |
|
13 |
"source": "attribute", |
|
14 |
"selector": "video", |
|
15 |
"attribute": "autoplay" |
|
16 |
}, |
|
17 |
"caption": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
18 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
19 |
"source": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
20 |
"selector": "figcaption", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
21 |
"__experimentalRole": "content" |
16 | 22 |
}, |
23 |
"controls": { |
|
24 |
"type": "boolean", |
|
25 |
"source": "attribute", |
|
26 |
"selector": "video", |
|
27 |
"attribute": "controls", |
|
28 |
"default": true |
|
29 |
}, |
|
30 |
"id": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
31 |
"type": "number", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
32 |
"__experimentalRole": "content" |
16 | 33 |
}, |
34 |
"loop": { |
|
35 |
"type": "boolean", |
|
36 |
"source": "attribute", |
|
37 |
"selector": "video", |
|
38 |
"attribute": "loop" |
|
39 |
}, |
|
40 |
"muted": { |
|
41 |
"type": "boolean", |
|
42 |
"source": "attribute", |
|
43 |
"selector": "video", |
|
44 |
"attribute": "muted" |
|
45 |
}, |
|
46 |
"poster": { |
|
47 |
"type": "string", |
|
48 |
"source": "attribute", |
|
49 |
"selector": "video", |
|
50 |
"attribute": "poster" |
|
51 |
}, |
|
52 |
"preload": { |
|
53 |
"type": "string", |
|
54 |
"source": "attribute", |
|
55 |
"selector": "video", |
|
56 |
"attribute": "preload", |
|
57 |
"default": "metadata" |
|
58 |
}, |
|
59 |
"src": { |
|
60 |
"type": "string", |
|
61 |
"source": "attribute", |
|
62 |
"selector": "video", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
63 |
"attribute": "src", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
64 |
"__experimentalRole": "content" |
16 | 65 |
}, |
66 |
"playsInline": { |
|
67 |
"type": "boolean", |
|
68 |
"source": "attribute", |
|
69 |
"selector": "video", |
|
70 |
"attribute": "playsinline" |
|
18 | 71 |
}, |
72 |
"tracks": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
73 |
"__experimentalRole": "content", |
18 | 74 |
"type": "array", |
75 |
"items": { |
|
76 |
"type": "object" |
|
77 |
}, |
|
78 |
"default": [] |
|
16 | 79 |
} |
80 |
}, |
|
81 |
"supports": { |
|
82 |
"anchor": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
83 |
"align": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
84 |
"spacing": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
85 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
86 |
"padding": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
87 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
88 |
"margin": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
89 |
"padding": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
90 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
91 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
92 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
93 |
"clientNavigation": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
94 |
} |
18 | 95 |
}, |
96 |
"editorStyle": "wp-block-video-editor", |
|
97 |
"style": "wp-block-video" |
|
16 | 98 |
} |