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