How to use VideoJS – HTML5 Video Player for WordPress

(I’m archiving this for my own purposes)
Instructions on using VideoJS – HTML5 Video Player for WordPress, taken from the plugin page. More at

Replace the “{” with a square bracket in the following items

Video Shortcode Options
The location of the h.264/MP4 source for the video.

{video mp4=”″]
The location of the Theora/Ogg source for the video.

{video ogg=””]
The location of the VP8/WebM source for the video.

{video webm=””]
The location of the poster frame for the video.

{video poster=””]
The width of the video.

{video width=”640″]
The height of the video.

{video height=”264″]
Start loading the video as soon as possible, before the user clicks play. Use ‘auto’, ‘metadata’, or ‘none’. Auto will preload when the browser or device allows it. Metadata will load only the meta data of the video.

{video preload=”auto”]
Start playing the video as soon as it’s ready. Use ‘true’ or ‘false’.

{video autoplay=”true”]
Causes the video to start over as soon as it ends. Use ‘true’ or ‘false’.

{video loop=”true”]
Use ‘false’ to hide the player controls.

{video controls=”false”]
Add a custom ID to your video player.

{video id=”movie-id”]
Add a custom class to your player. Use full for floating the video player using ‘alignleft’ or ‘alignright’.

{video class=”alignright”]
Text Tracks are a function of HTML5 video for providing time triggered text to the viewer. To use tracks use the {track] shortcode inside of the {video] shortcode. You can set values for the kind, src, srclang, label, and default attributes. More information is available in the Video.js Documentation.

{video]{track kind=”captions” src=”” srclang=”en” label=”English” default=”true”]{/video]
All Attributes Example
{video mp4=”″ ogg=”” webm=”” poster=”” preload=”auto” autoplay=”true” width=”640″ height=”264″ id=”movie-id” class=”alignleft” controls=”false”]{track kind=”captions” src=”” srclang=”en” label=”English” default=”true”]{/video]
Video.js Settings Screen
The values set here will be the default values for all videos, unless you specify differently in the shortcode. Uncheck “Use CDN hosted version?” if you want to use a self-hosted copy of Video.js instead of the CDN hosted version. Using the CDN hosted version is preferable in most situations.

Leave a Comment

Do not write "http://" or "https://" in your comment, it will be blocked. It may take a few days for me to manually approve your first comment.