1{
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/audio",
5 "title": "Audio",
6 "category": "media",
7 "description": "Embed a simple audio player.",
8 "keywords": [ "music", "sound", "podcast", "recording" ],
9 "textdomain": "default",
10 "attributes": {
11 "blob": {
12 "type": "string",
13 "role": "local"
14 },
15 "src": {
16 "type": "string",
17 "source": "attribute",
18 "selector": "audio",
19 "attribute": "src",
20 "role": "content"
21 },
22 "caption": {
23 "type": "rich-text",
24 "source": "rich-text",
25 "selector": "figcaption",
26 "role": "content"
27 },
28 "id": {
29 "type": "number",
30 "role": "content"
31 },
32 "autoplay": {
33 "type": "boolean",
34 "source": "attribute",
35 "selector": "audio",
36 "attribute": "autoplay"
37 },
38 "loop": {
39 "type": "boolean",
40 "source": "attribute",
41 "selector": "audio",
42 "attribute": "loop"
43 },
44 "preload": {
45 "type": "string",
46 "source": "attribute",
47 "selector": "audio",
48 "attribute": "preload"
49 }
50 },
51 "supports": {
52 "anchor": true,
53 "align": true,
54 "spacing": {
55 "margin": true,
56 "padding": true,
57 "__experimentalDefaultControls": {
58 "margin": false,
59 "padding": false
60 }
61 },
62 "interactivity": {
63 "clientNavigation": true
64 }
65 },
66 "editorStyle": "wp-block-audio-editor",
67 "style": "wp-block-audio"
68}
69