WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Video.js - HTML5 Video Player for WordPress

Self-hosted responsive HTML5 video for WordPress, built on the widely used Video.js HTML5 video player. Embed video in your post or page using HTML5.

This section describes how to install the plugin and get it working.

  1. Upload the videojs-html5-video-player-for-wordpress folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Use the [videojs] shortcode in your post or page using the following options.
##Video Shortcode Options

mp4

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

[videojs mp4="http://video-js.zencoder.com/oceans-clip.mp4"]

ogg

The location of the Theora/Ogg source for the video.

[videojs ogg="http://video-js.zencoder.com/oceans-clip.ogg"]

webm

The location of the VP8/WebM source for the video.

[videojs webm="http://video-js.zencoder.com/oceans-clip.webm"]

youtube

The location of the YouTube source for the video.

[videojs youtube="http://www.youtube.com/watch?v=DJU6ppZAaec"]

poster

The location of the poster frame for the video.

[videojs poster="http://video-js.zencoder.com/oceans-clip.png"]

width

The width of the video.

[videojs width="640"]

height

The height of the video.

[videojs height="264"]

preload

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.

[videojs preload="auto"]

autoplay

Start playing the video as soon as it's ready. Use 'true' or 'false'.

[videojs autoplay="true"]

loop

Causes the video to start over as soon as it ends. Use 'true' or 'false'.

[videojs loop="true"]

controls

Use 'false' to hide the player controls.

[videojs controls="false"]

id

Add a custom ID to your video player.

[videojs id="movie-id"]

class

Add a custom class to your player. Use full for floating the video player using 'alignleft' or 'alignright'.

[videojs class="alignright"]

Tracks

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.

[videojs][track kind="captions" src="http://video-js.zencoder.com/oceans-captions.vtt" srclang="en" label="English" default="true"][/videojs]

All Attributes Example

[videojs mp4="http://video-js.zencoder.com/oceans-clip.mp4" ogg="http://video-js.zencoder.com/oceans-clip.ogg" webm="http://video-js.zencoder.com/oceans-clip.webm" poster="http://video-js.zencoder.com/oceans-clip.png" preload="auto" autoplay="true" width="640" height="264" id="movie-id" class="alignleft" controls="false"][track kind="captions" src="http://example.com/path/to/captions.vtt" srclang="en" label="English" default="true"][/videojs]
##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.

If you are using a responsive WordPress theme, you may want to check the Responsive Video checkbox.

Uncheck the Use the [video] shortcode? option only if you are using WordPress 3.6+ and wish to use the [video] tag for MediaElement.js. You will still be able to use the [videojs] tag to embed videos using Video.js.

Requires: 2.7 or higher
Compatible up to: 3.8.3
Last Updated: 2014-1-9
Downloads: 128,467

Ratings

4 stars
4.4 out of 5 stars

Support

5 of 15 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1
100,3,3
0,1,0
75,4,3
0,1,0
100,2,2
100,3,3
71,7,5
50,4,2
100,2,2 0,4,0 100,1,1
80,5,4
78,9,7
100,1,1 100,2,2 75,4,3
100,1,1
100,1,1 100,5,5
0,1,0
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,2,2