block.json in Gutenberg 10.1.0, at build/block-library/blocks/video/block.json
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "core/video", |
| 4 | "category": "media", |
| 5 | "attributes": { |
| 6 | "autoplay": { |
| 7 | "type": "boolean", |
| 8 | "source": "attribute", |
| 9 | "selector": "video", |
| 10 | "attribute": "autoplay" |
| 11 | }, |
| 12 | "caption": { |
| 13 | "type": "string", |
| 14 | "source": "html", |
| 15 | "selector": "figcaption" |
| 16 | }, |
| 17 | "controls": { |
| 18 | "type": "boolean", |
| 19 | "source": "attribute", |
| 20 | "selector": "video", |
| 21 | "attribute": "controls", |
| 22 | "default": true |
| 23 | }, |
| 24 | "id": { |
| 25 | "type": "number" |
| 26 | }, |
| 27 | "loop": { |
| 28 | "type": "boolean", |
| 29 | "source": "attribute", |
| 30 | "selector": "video", |
| 31 | "attribute": "loop" |
| 32 | }, |
| 33 | "muted": { |
| 34 | "type": "boolean", |
| 35 | "source": "attribute", |
| 36 | "selector": "video", |
| 37 | "attribute": "muted" |
| 38 | }, |
| 39 | "poster": { |
| 40 | "type": "string", |
| 41 | "source": "attribute", |
| 42 | "selector": "video", |
| 43 | "attribute": "poster" |
| 44 | }, |
| 45 | "preload": { |
| 46 | "type": "string", |
| 47 | "source": "attribute", |
| 48 | "selector": "video", |
| 49 | "attribute": "preload", |
| 50 | "default": "metadata" |
| 51 | }, |
| 52 | "src": { |
| 53 | "type": "string", |
| 54 | "source": "attribute", |
| 55 | "selector": "video", |
| 56 | "attribute": "src" |
| 57 | }, |
| 58 | "playsInline": { |
| 59 | "type": "boolean", |
| 60 | "source": "attribute", |
| 61 | "selector": "video", |
| 62 | "attribute": "playsinline" |
| 63 | }, |
| 64 | "tracks": { |
| 65 | "type": "array", |
| 66 | "items": { |
| 67 | "type": "object" |
| 68 | }, |
| 69 | "default": [] |
| 70 | } |
| 71 | }, |
| 72 | "supports": { |
| 73 | "anchor": true, |
| 74 | "align": true |
| 75 | }, |
| 76 | "editorStyle": "wp-block-video-editor", |
| 77 | "style": "wp-block-video" |
| 78 | } |
| 79 |