Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

101 lines (58 sloc) 2.702 kB
<p>Use the <strong>Insert HTML5 Video</strong> button in the WordPress editor or use the [videojs] shortcode in your post or page using the following options:</p>
<p>The location of the h.264/MP4 source for the video.</p>
<pre><code>[videojs mp4=""]
<p>The location of the Theora/Ogg source for the video.</p>
<pre><code>[videojs ogg=""]
<p>The location of the VP8/WebM source for the video.</p>
<pre><code>[videojs webm=""]
<p>The url of the youtube video.</p>
<pre><code>[videojs youtube=""]
<p>The location of the poster frame for the video.</p>
<pre><code>[videojs poster=""]
<p>The width of the video.</p>
<pre><code>[videojs width="640"]
<p>The height of the video.</p>
<pre><code>[videojs height="264"]
<p>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.</p>
<pre><code>[videojs preload="auto"]
<p>Start playing the video as soon as it's ready. Use 'true' or 'false'.</p>
<pre><code>[videojs autoplay="true"]
<p>Causes the video to start over as soon as it ends. Use 'true' or 'false'.</p>
<pre><code>[videojs loop="true"]
<p>Use 'false' to hide the player controls.</p>
<pre><code>[videojs controls="false"]
<p>Add a custom ID to your video player.</p>
<pre><code>[videojs id="movie-id"]
<p>Add a custom class to your player. Use full for floating the video player using 'alignleft' or 'alignright'.</p>
<pre><code>[videojs class="alignright"]
<p>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 [videojs] shortcode. You can set values for the kind, src, srclang, label, and default attributes. More information is available in the <a href="">Video.js Documentation</a>.</p>
<pre><code>[videojs][track kind="captions" src="" srclang="en" label="English" default="true"][/videojs]
Jump to Line
Something went wrong with that request. Please try again.