Responsive Video

Last updated

A YouTube, Vimeo or Media Library video in a responsive frame that keeps its shape on every screen. YouTube and Vimeo players load only when the visitor presses play, so pages stay fast.

Demonstration

Responsive Video Settings

Source: A YouTube or Vimeo URL, or a video file from the Media Library.

Video URL: Paste a YouTube (watch, youtu.be, Shorts) or Vimeo link.

Video File: MP4 or WebM from the Media Library.

Poster Image: Optional. YouTube uses its own thumbnail and Vimeo's is fetched and cached automatically when this is empty.

Video Title: Used for the accessible player name and the play button label.

Aspect Ratio: Options: 16:9, 4:3, 21:9, 1:1, 9:16 (vertical).

Max Width: Optional. Leave empty to fill the column; narrower videos are centered.

Load Player: On click shows a thumbnail and loads YouTube/Vimeo only when the visitor presses play.

Autoplay (muted): Browsers only allow muted autoplay. Loads the player on page load.

Loop: Repeat the video when it ends.

Show Controls: Show the player's controls. A Media Library video that doesn't autoplay always shows them.

Start At: Start playback this many seconds in. YouTube and Vimeo only.

Video Schema: Adds a VideoObject to Yoast's schema graph when Yoast is active, or outputs standalone JSON-LD otherwise. Uses Video Title as the name and the poster/thumbnail as the image. Vimeo videos and Media Library files fill in upload date and duration automatically; YouTube videos need an Upload Date or they are left out.

Schema Description: Short summary of the video. Vimeo's description is used when empty.

Upload Date: Date the video was first published. Required for YouTube.

Duration: Optional, e.g. 3:45 or 1:02:03.

Usage Notes

Keep pages fast: Leave Load Player on On click. YouTube and Vimeo then load only when a visitor presses play. Use On page load only when you need muted autoplay.

Schema with Yoast: With Yoast SEO active, the VideoObject joins Yoast’s schema graph. Without Yoast, the block prints its own JSON-LD.