wp/wp-includes/blocks/video/block.json
changeset 16 a86126ab1dd4
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
       
     1 {
       
     2 	"name": "core/video",
       
     3 	"category": "media",
       
     4 	"attributes": {
       
     5 		"autoplay": {
       
     6 			"type": "boolean",
       
     7 			"source": "attribute",
       
     8 			"selector": "video",
       
     9 			"attribute": "autoplay"
       
    10 		},
       
    11 		"caption": {
       
    12 			"type": "string",
       
    13 			"source": "html",
       
    14 			"selector": "figcaption"
       
    15 		},
       
    16 		"controls": {
       
    17 			"type": "boolean",
       
    18 			"source": "attribute",
       
    19 			"selector": "video",
       
    20 			"attribute": "controls",
       
    21 			"default": true
       
    22 		},
       
    23 		"id": {
       
    24 			"type": "number"
       
    25 		},
       
    26 		"loop": {
       
    27 			"type": "boolean",
       
    28 			"source": "attribute",
       
    29 			"selector": "video",
       
    30 			"attribute": "loop"
       
    31 		},
       
    32 		"muted": {
       
    33 			"type": "boolean",
       
    34 			"source": "attribute",
       
    35 			"selector": "video",
       
    36 			"attribute": "muted"
       
    37 		},
       
    38 		"poster": {
       
    39 			"type": "string",
       
    40 			"source": "attribute",
       
    41 			"selector": "video",
       
    42 			"attribute": "poster"
       
    43 		},
       
    44 		"preload": {
       
    45 			"type": "string",
       
    46 			"source": "attribute",
       
    47 			"selector": "video",
       
    48 			"attribute": "preload",
       
    49 			"default": "metadata"
       
    50 		},
       
    51 		"src": {
       
    52 			"type": "string",
       
    53 			"source": "attribute",
       
    54 			"selector": "video",
       
    55 			"attribute": "src"
       
    56 		},
       
    57 		"playsInline": {
       
    58 			"type": "boolean",
       
    59 			"source": "attribute",
       
    60 			"selector": "video",
       
    61 			"attribute": "playsinline"
       
    62 		}
       
    63 	},
       
    64 	"supports": {
       
    65 		"anchor": true,
       
    66 		"align": true,
       
    67 		"lightBlockWrapper": true
       
    68 	}
       
    69 }