From 0e5b01440c06aa5d3cc8ce914ff90dd0961b974e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Ventura?= Date: Sun, 8 Mar 2020 14:52:19 +0100 Subject: [PATCH 1/3] Add example preview to video block. --- packages/block-library/src/video/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/block-library/src/video/index.js b/packages/block-library/src/video/index.js index 341d95eb289060..f3d848be699cf8 100644 --- a/packages/block-library/src/video/index.js +++ b/packages/block-library/src/video/index.js @@ -23,6 +23,13 @@ export const settings = { ), icon, keywords: [ __( 'movie' ) ], + example: { + attributes: { + autoplay: true, + controls: true, + src: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm', + }, + }, transforms, edit, save, From 4e33422bab3ae5f035f34aee5cd5b36a1d658448 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Tue, 1 Dec 2020 17:48:55 +0100 Subject: [PATCH 2/3] Add the caption for video --- packages/block-library/src/video/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/video/index.js b/packages/block-library/src/video/index.js index f3d848be699cf8..447aa9b5630489 100644 --- a/packages/block-library/src/video/index.js +++ b/packages/block-library/src/video/index.js @@ -25,9 +25,10 @@ export const settings = { keywords: [ __( 'movie' ) ], example: { attributes: { - autoplay: true, - controls: true, - src: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm', + src: + 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm', + // translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Image block. + caption: __( 'Wood thrush singing in Central Park, NYC.' ), }, }, transforms, From 9d3290e4381d615f29ba00b44ff8911d90b1d073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Tue, 1 Dec 2020 22:37:04 +0100 Subject: [PATCH 3/3] Update packages/block-library/src/video/index.js --- packages/block-library/src/video/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/video/index.js b/packages/block-library/src/video/index.js index 447aa9b5630489..ce7d6fd2cdd62f 100644 --- a/packages/block-library/src/video/index.js +++ b/packages/block-library/src/video/index.js @@ -27,7 +27,7 @@ export const settings = { attributes: { src: 'https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm', - // translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Image block. + // translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Video block. caption: __( 'Wood thrush singing in Central Park, NYC.' ), }, },