{"id":11285068,"date":"2019-03-07T10:05:26","date_gmt":"2019-03-07T10:05:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=11285068"},"modified":"2024-06-09T09:28:35","modified_gmt":"2024-06-09T09:28:35","slug":"video-block","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/video-block\/","title":{"rendered":"Video block\u00a0"},"content":{"rendered":"\n
[Go to the List of Blocks]<\/a><\/p>\n\n\n\n Use the Video<\/em> block to upload and embed video into your post or page.<\/p>\n\n\n\n To add the Video <\/em>block to a page, click the (+) icon to open the block inserter pop-up window and choose the Video<\/em> block.<\/p>\n\n\n\n You can also use the keyboard shortcut \/video to quickly insert a Video<\/em> block. <\/p>\n\n\n\n Detailed instructions on adding blocks can be found here<\/a>. <\/p>\n\n\n\n When you add a Video<\/em> block, you will be prompted with three options to add your content, Upload, Media Library, and Insert from URL.<\/p>\n\n\n\n The Upload will allow you to upload a new video file from your computer. Media Library lets you select a file that\u2019s already uploaded to your site\u2019s media library. <\/p>\n\n\n\n If you insert a URL from a supported block type, such as YouTube, the Video<\/em> block will automatically transform into a YouTube<\/em> block.<\/p>\n\n\n\n Once the video is embedded in the page, you can add an optional caption.<\/p>\n\n\n\n To view the block toolbar, click on the block, and the toolbar will be displayed.<\/p>\n\n\n\n Every block comes with unique toolbar icons and blocks specific user controls that allow you to manipulate the block right in the editor.<\/p>\n\n\n\n The Video<\/em> block toolbar comes with six buttons:<\/p>\n\n\n\n Transform to<\/strong><\/p>\n\n\n\n Click on the \u201cTransform\u201d button to convert the Video<\/em> block into a Columns, Cover, File, Media & Text, or Group block. If you choose to transform it to a Group<\/em> block, you will be able to change the background color around the video:<\/p>\n\n\n\n Drag icon<\/strong><\/p>\n\n\n\n To drag and drop the block to a new location on the page template, click and hold the rectangle of dots, then drag it to the new location. The blue separator line indicates where the block will be placed. Release the left mouse button when you find the new location to place the block.<\/p>\n\n\n\n Move arrows<\/strong><\/p>\n\n\n\n The up and down arrow icons can be used to move the block up and down on the page.<\/p>\n\n\n\n Detailed instructions on moving a block within the editor can be found here<\/a>.<\/p>\n\n\n\n Change alignment<\/strong><\/p>\n\n\n\n Use the change alignment tool to align the Video <\/em>block. Choose one of the following options:<\/p>\n\n\n\n The \u201cWide width\u201d and \u201cFull width\u201d alignment settings must be enabled by your WordPress theme. <\/p>\n\n\n\n Text tracks<\/strong><\/p>\n\n\n\n The Text<\/em> tracks option will allow you to display timed text tracks (such as subtitles or captions) when the media is playing.<\/p>\n\n\n\n The tracks are formatted in WebVTT format (.vtt files) \u2014 Web Video Text Tracks.<\/p>\n\n\n\n Once you upload the track, you will find the edit track option.<\/p>\n\n\n\n Label. <\/strong>A user-readable title of the text track which is used by the browser when listing available text tracks.<\/p>\n\n\n\n Source language. <\/strong>Language of the track text data. It must be a valid BCP 47 language tag. If the Kind attribute is set to Subtitles, then the Source language must be defined.<\/p>\n\n\n\n Kind.<\/strong> How the text track is meant to be used. If omitted, the default kind is Subtitles. If the attribute contains an invalid value, it will use Metadata.<\/p>\n\n\n\n Replace<\/strong><\/p>\n\n\n\n The Replace<\/em> option will allow you to select a new video file for your block. Use this if you need to replace the video file in your Video<\/em> block. You\u2019ll have the option to select Open Media Library, Upload, or Current media URL.<\/p>\n\n\n\n Options<\/strong><\/p>\n\n\n\n The Options<\/em> button on a block toolbar gives you more features to customize the block. <\/p>\n\n\n\n Read about these and other settings.<\/a><\/p>\n\n\n\n The block<\/strong> settings panel contains customization options specific to the block. To open it, select the block and click the cog icon next to the Publish<\/strong> button.<\/p>\n\n\n\n Settings <\/strong><\/p>\n\n\n\n Playback controls<\/strong><\/p>\n\n\n\n Toggle this option to show or hide the playback control overlay on the video. For example, a video with playback controls:<\/p>\n\n\n\n Without playback controls:<\/p>\n\n\n\n Preload<\/strong><\/p>\n\n\n\n This option allows you to select how much of the video file is downloaded when the page or post is loaded. While it may be tempting to go ahead and have the whole file download automatically, keep in mind that this can slow your page\u2019s load speed down.<\/p>\n\n\n\n There are three settings:<\/p>\n\n\n\n Poster image<\/strong><\/p>\n\n\n\n You can choose a poster image that will be displayed before a video is set to play. This can be useful if the first frame of the video isn\u2019t necessarily appealing or indicative of the video content. An eye-catching poster image can really draw attention to your video.<\/p>\n\n\n\n Dimensions<\/strong><\/p>\n\n\n\n The Video<\/em> block provides dimension settings options to change padding and margin size.<\/p>\n\n\n\n For details, refer to this support article: Dimensions Settings Overview<\/a><\/p>\n\n\n\n<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
Block toolbar<\/h2>\n\n\n\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n
Block settings<\/h2>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
<\/figure>\n\n\n\n
\n
<\/figure>\n\n\n\n