Background Videos Plugin

Demo to preview the settings

Introduction

Background Video Plugin - Provides smooth videos for promotion on the landing page, go no further as with this plugin users can set videos as their backgrounds, with the possibility to stylize the frame, playback speed, change opacity, and more.
Image without caption

How to setup

  1. Create a database table with three fields of type file.
Image without caption
  1. Upload your background video in 3 file formats - .mp4, .webm, and .ogg, to be compatible with all browsers.
Image without caption
  1. Set the ID Attribute for the element you want to add background video.
Image without caption
3. Place the BackgroundVideos element on the page with the previous ID Attribute.
Image without caption
4. On your page set the data source URL for the plugin element from the table which you created above.
Image without caption
5. Done!
❗
Note: Do not forget to deploy the database values to live.

Plugin Element Proprieties

The plugin contains BackgroundVideos visual element which should be used on the page.
Image without caption
Image without caption
Proprieties fields:
  • Element ID - The "ID Attribute" of the element you want to insert background video for.
  • Video URL β€œ.mp4” - Refers to the same file but the ".mp4" extension. Tip: The URL should end with one of the following formats: ".mp4", ".m4a", ".m4p", ".m4b", ".m4r", and ".m4v".
  • Video URL β€œ.webm” - Refers to the same file but the ".webm" extension. Tip: The URL should end with ".webm".
  • Video URL β€œ.ogg” - Refers to the same file but ".ogg" extension. Tip: The URL should end with one of the following formats: ".ogg", ".ogx", ".ogv", ".oga", ".spx", ".ogm", and ".opus".
  • PLAYBACKRATE - propriety sets the rate at which the media is being played back. The range starts from 0.25 to 5.0. The normal speed is 1.
  • MUTED - mutes the background video.
  • BACKGROUND COLOR - allows a custom background color for a Video div element.
  • VOLUME - the range starts from 0.0 to 1.0.
  • ADD A PAUSE - add a pause if needed to play the item in RepeatingGroup or Popup.
  • OPACITY - the opacity property can take a value from 0.0 to 1.0. The lower the value, the more transparent.
  • Poster - the poster is required if the video does not set to autoplay.
  • Autoplay - the video will play as soon as the page loads.
❗
The Autoplay feature does not work in the Safari browser. When the Mute feature is not enabled Autoplay does not work. The cause is - the policy of the browsers.(https://developers.google.com/web/updates/2017/09/autoplay-policy-changes)

Element Actions

  1. Video Play/Pause A Background Videos - an action that sets the playback of the video by playing or pausing a video.
  1. Change Video - This action is used to change the video.
    1. Proprieties fields:
      • Video URL β€œ.mp4” - Refers to the same file but the ".mp4" extension. Tip: The URL should end with one of the following formats: ".mp4", ".m4a", ".m4p", ".m4b", ".m4r", and ".m4v".
      • Video URL β€œ.webm” - Refers to the same file but the ".webm" extension. Tip: The URL should end with ".webm".
      • Video URL β€œ.ogg” - Refers to the same file but ".ogg" extension. Tip: The URL should end with one of the following formats: ".ogg", ".ogx", ".ogv", ".oga", ".spx", ".ogm", and ".opus".
      • PLAYBACKRATE - propriety sets the rate at which the media is being played back. The range starts from 0.25 to 5.0. The normal speed is 1.
      • MUTED - mutes the background video.
      • BACKGROUND COLOR - allows a custom background color for a Video div element.
      • VOLUME - the range starts from 0.0 to 1.0.
      • ADD A PAUSE - add a pause if needed to play the item in RepeatingGroup or Popup.
      • OPACITY - the opacity property can take a value from 0.0 to 1.0. The lower the value, the more transparent.
      • Poster - the poster is required if the video does not set to autoplay.
      • Autoplay - the video will play as soon as the page loads.
  1. Video Restart - This action is used to restart the video from the begging.

Workflow example

  1. Create your database as shown in the How to setup the plugin
  1. Add an event on Button click to play/pause the video using plugin action (if needed) otherwise use the plugin's element proprieties to customize the look
Image without caption
3. Done
Image without caption

Changelogs