@@ -62,6 +62,11 @@ public function get_data() {
62
62
'<amp-video src="https://example.com/file.mp4" class="amp-wp-unknown-size" height="400" layout="fixed-height" width="auto"><a href="https://example.com/file.mp4" fallback="">https://example.com/file.mp4</a><noscript><video src="https://example.com/file.mp4"></video></noscript></amp-video> ' ,
63
63
],
64
64
65
+ 'video_with_autoplay ' => [
66
+ '<video src="https://example.com/file.mp4" autoplay muted width="160" height="80"></video> ' ,
67
+ '<amp-video src="https://example.com/file.mp4" autoplay width="160" height="80" layout="responsive"><a href="https://example.com/file.mp4" fallback="">https://example.com/file.mp4</a><noscript><video src="https://example.com/file.mp4" autoplay width="160" height="80"></video></noscript></amp-video> ' ,
68
+ ],
69
+
65
70
'local_video_without_dimensions ' => [
66
71
sprintf ( '<video src="%s"></video> ' , '{{video_url}} ' ),
67
72
sprintf ( '<amp-video src="%1$s" width="560" height="320" layout="responsive"><a href="%1$s" fallback="">%1$s</a><noscript><video src="%1$s"></video></noscript></amp-video> ' , '{{video_url}} ' ),
@@ -109,12 +114,12 @@ public function get_data() {
109
114
110
115
'video_with_allowlisted_attributes__enabled ' => [
111
116
'<video width="300" height="300" src="https://example.com/video.mp4" controls loop="true" muted="muted"></video> ' ,
112
- '<amp-video width="300" height="300" src="https://example.com/video.mp4" controls="" loop="" muted="" layout="responsive"><a href="https://example.com/video.mp4" fallback="">https://example.com/video.mp4</a><noscript><video width="300" height="300" src="https://example.com/video.mp4" controls loop="true" muted="muted" ></video></noscript></amp-video> ' ,
117
+ '<amp-video width="300" height="300" src="https://example.com/video.mp4" controls="" loop="" muted="" layout="responsive"><a href="https://example.com/video.mp4" fallback="">https://example.com/video.mp4</a><noscript><video width="300" height="300" src="https://example.com/video.mp4" controls loop="true"></video></noscript></amp-video> ' ,
113
118
],
114
119
115
120
'video_with_allowlisted_attributes__disabled ' => [
116
121
'<video width="300" height="300" src="https://example.com/video.mp4" controls="false" loop="false" muted="false"></video> ' ,
117
- '<amp-video width="300" height="300" src="https://example.com/video.mp4" layout="responsive"><a href="https://example.com/video.mp4" fallback="">https://example.com/video.mp4</a><noscript><video width="300" height="300" src="https://example.com/video.mp4" controls="false" loop="false" muted="false" ></video></noscript></amp-video> ' ,
122
+ '<amp-video width="300" height="300" src="https://example.com/video.mp4" layout="responsive"><a href="https://example.com/video.mp4" fallback="">https://example.com/video.mp4</a><noscript><video width="300" height="300" src="https://example.com/video.mp4" controls="false" loop="false"></video></noscript></amp-video> ' ,
118
123
],
119
124
120
125
'video_with_custom_attribute ' => [
0 commit comments