Skip to main content

Self Hosted Video

Live preview of the Self Hosted Video element in the Salient WordPress theme. Sample content, for demonstration only.

The Self Hosted Video Player plays a video file you host rather than one embedded from YouTube or Vimeo. That means no third-party branding, no related videos at the end and no cookies from someone else's player, at the cost of your own bandwidth.

For an embedded video behind a play button, see Video Lightbox instead.

Supplying the video​

  • Video MP4 File URL Media The main file. MP4 plays everywhere.
  • Video WebM File URL Media An optional second file. Browsers pick whichever they support, and WebM is usually the smaller of the two.
  • Video Preview Image Media The poster frame, shown before playback starts. Without one the player shows a black rectangle until the video loads.

Settings​

  • Player Functionality Choice Standard Video Player plays in place. Lightbox Trigger opens the video full screen instead, using the Lightbox Video URL field.
  • Play Button Style Choice Default, or Follow Mouse so the button tracks the cursor across the poster.
  • Play Button Color and Play Button Icon Color The button itself.
  • Video Loading Choice Lazy Load holds the file back until the player scrolls into view, which is worth setting whenever the video is below the fold.
  • Replace With Image on Mobile Toggle Shows the poster image instead of loading the video on phones, saving a large download on a connection that may be metered.
  • Video Aspect Ratio ChoiceResponsive. Set a different value for desktop, tablet and phone. 16:9, 4:3, 1:1, 2.35:1 or 9:16. Worth setting per device when a widescreen film would otherwise be a thin strip on a phone.
  • Border Radius and Box Shadow The frame around the player.
Keep the file small

A self hosted video is served from your own hosting, so its size is your page weight. Compress before uploading, keep background-style clips under a few seconds and loop them, and use Lazy Load for anything not immediately visible.