diff --git a/packages/block-library/src/video/edit.js b/packages/block-library/src/video/edit.js index 6661db034b75c0..5b54e8ae0f0a4e 100644 --- a/packages/block-library/src/video/edit.js +++ b/packages/block-library/src/video/edit.js @@ -129,6 +129,7 @@ class VideoEdit extends Component { poster, preload, src, + playsInline, } = this.props.attributes; const { setAttributes, isSelected, className, noticeOperations, noticeUI } = this.props; const { editing } = this.state; @@ -200,6 +201,11 @@ class VideoEdit extends Component { onChange={ this.toggleAttribute( 'controls' ) } checked={ controls } /> + { src && ( @@ -156,6 +162,7 @@ export const settings = { poster={ poster } preload={ preload !== 'metadata' ? preload : undefined } src={ src } + playsInline={ playsInline } /> ) } { ! RichText.isEmpty( caption ) && ( diff --git a/packages/e2e-tests/fixtures/blocks/core__video.json b/packages/e2e-tests/fixtures/blocks/core__video.json index e91fd20c5bd8b2..cb19827f7ad7b2 100644 --- a/packages/e2e-tests/fixtures/blocks/core__video.json +++ b/packages/e2e-tests/fixtures/blocks/core__video.json @@ -9,6 +9,7 @@ "controls": true, "loop": false, "muted": false, + "playsInline": false, "preload": "metadata", "src": "https://awesome-fake.video/file.mp4" },