PluginsYoutube Embed

Youtube Embed

Easily embed a YouTube video and customize it with a user-friendly interface, including settings like aspect ratio, autoplay, mute, and more in just a few seconds.

FreeByDivhunt

Watch the video tutorial on YouTube

The YouTube Embed Plugin is designed for content creators, educators, and businesses looking to easily integrate YouTube videos into their websites. It offers a variety of options, as well as a custom poster feature that improves site performance by loading videos only when users click play, making it crucial for optimal performance scores. Easily customizable with options like autoplay, aspect ratio adjustments, and custom play buttons, the plugin is versatile and helps maintain the website's speed and design integrity.

Instructions

Installation

  • Go to the settings of your project and navigate to "Browse Plugins".
  • Find and install the "YouTube Embed" plugin.

Apply transform

  • Add an empty div to the place where you want to display your YouTube video.
  • Select div that we just added, go to the 'Settings' panel and set transform to 'Youtube Embed'.

Basic settings

  • Video URL: Paste the URL of the YouTube video you want to embed.
  • Aspect Ratio: Adjust the video's aspect ratio to fit your design.
  • Autoplay: Toggle on to have the video play automatically upon page load.
  • Loop: Enable this option for the video to replay continuously.
  • Mute: Sets the player to be muted; required for autoplay videos to work.
  • Controls: Toggle to show or hide playback tools on the video.

Poster settings

  • Poster: Upload custom cover image that will be used instead of video until user clicks play.
  • Button: Upload custom play button to be used instead of default one.
  • Button class: If you are a developer and wish to create your own styling for the play button, add a class that you will use to write custom CSS. Adding this class will completely remove our pre-defined styles of the button, including positioning and styling, and you will need to start from scratch.
  • Play in Popup: When a user clicks play, the video will open in a popup instead of playing in the place of the cover image.

It is highly recommended to use a poster, especially if you have more than one video per page, as this will not cause a drop in your website's performance. When using the custom poster option, the YouTube video is not loaded until the user clicks the play button.

Extra settings

  • Start: If you wish to start your video at a specific timestamp, enter the time in the format (Mm:Ss). For example, entering '01:30' will start the video at 1 minute and 30 seconds.
  • End: If you wish to end your video at a specific timestamp, enter the time in the format (Mm:Ss). For example, entering '02:30' will end the video at 2 minutes and 30 seconds.
  • Fullscreen button: Disable the fullscreen button in the YouTube player.
  • Force 1080p: YouTube typically tries to play videos based on viewer preferences or internet speed. This option forces the video to be played in the highest resolution, up to 1080p.
  • Progress bar: YouTube provides two choices for the color of the progress bar: red and white, with red being the default.

More plugins.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.