WordPress.org

Ready to get started?Download WordPress

Plugin Directory

MediaElement.js - HTML5 Video & Audio Player

MediaElement.js is an HTML5 video and audio player with Flash fallback and captions. Supports IE, Firefox, Opera, Safari, Chrome and iPhone, iPad, And

Video and audio plugin for WordPress built on the MediaElement.js HTML5 media player library. Provides Flash or Silverlight fallback players for non-HTML5 browsers. Supports iPhone, iPad, and Andriod. Supports MP4, OGG, WebM, WMV, MP3, WAV, WMA files as well as captions with WebSRT files.

Check out mediaElementjs.com for more information and examples.

Typical Usage for video

[video src="http://mysite.com/mymedia.mp4" width="640" height="360"]

Typical Usage for audio

[audio src="http://mysite.com/mymedia.mp3"] 

Shortcode Options

Alternatives

If you have a plugin that conflicts with MediaElement.js, you can also use the short codes

[mejsvideo src="http://mysite.com/mymedia.mp4" width="640" height="360"]
[mejsaudio src="http://mysite.com/mymedia.mp3"] 

src

This location of any audio or video file

[video src="http://mysite.com/mymedia.mp4"]

You can also leave off the extention and MediaElement.js will look for all media files matching the filename (mymedia.mp4, mymedia.webm, etc.)

[video src="http://mysite.com/mymedia"]

type

The media type of the resource

[video src="http://mysite.com/mymedia?xyz" type="video/mp4"]    

mp4

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

[video mp4="http://mysite.com/mymedia.mp4"]

mp3

The location of an MP3 file for video

[audio mp3="http://mysite.com/mymedia.mp3"]    

ogg

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

[video ogg="http://mysite.com/mymedia.ogg"]

webm

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

[video webm="http://mysite.com/mymedia.webm"]

poster

The location of the poster frame for the video.

[video poster="http://mysite.com/mymedia.png"]

width

The width of the video

[video width="640"]

height

The height of the video

[video height="264"]

loop

Loops the video or audio when it ends

[video src="http://mysite.com/mymedia.mp4" loop="true"]    

preload

Start loading the video as soon as possible, before the user clicks play.

[video preload="true"]

autoplay

Start playing the video as soon as it's ready.

[video autoplay="true"]

fullscreen

Disables the fullscreen button

[video src="http://mysite.com/mymedia.mp4" fullscreen="false"]

duration

Disables the duration output

[video src="http://mysite.com/mymedia.mp4" duration="false"]   

volume

Disables the volume slider

[video src="http://mysite.com/mymedia.mp4" volume="false"]    

progress

Disables the progress bar

[video src="http://mysite.com/mymedia.mp4" progress="false"] 

captions

URL to a WebSRT captions file

[video src="http://mysite.com/mymedia.mp4" captions="http://mysite.com/mymedia.srt"]                

Simple Video

Basic playback options

[video src="http://mysite.com/mymedia.mp4" width="640" height="360"]

All Attributes Video

All options enabled

[video mp4="http://mysite.com/mymedia.mp4" ogg="http://mysite.com/mymedia.ogg" webm="http://mysite.com/mymedia.webm" poster="http://mysite.com/mymedia.png" preload="true" autoplay="true" width="640" height="264"]

Simple Audio

Basic playback options

[audio src="http://mysite.com/mymedia.mp3"]

All Attributes Audio

All options enabled

[audio mp3="http://mysite.com/mymedia.mp3" ogg="http://mysite.com/mymedia.ogg" preload="true" autoplay="true"]

Use in a template

You can use WordPress shortcodes in your templates using the do_shortcode function.

<?php echo do_shortcode('[video src="myvfile.mp4"]'); ?>

Requires: 2.8 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-27
Downloads: 510,867

Ratings

4 stars
4.4 out of 5 stars

Support

0 of 6 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.
2 people say it's broken.

100,1,1
100,3,3 100,1,1 100,1,1 0,2,0 50,2,1 100,1,1
100,2,2
0,1,0
50,2,1 100,2,2 100,2,2
100,1,1 0,1,0 100,1,1 100,1,1
0,1,0 0,1,0 100,4,4 0,2,0 75,4,3
67,3,2
100,3,3 100,1,1
50,4,2
100,1,1
25,4,1
100,1,1 50,16,8 63,8,5
100,2,2 100,3,3 100,1,1
84,19,16 100,10,10
78,9,7 50,6,3
86,7,6
52,21,11
80,20,16
100,1,1 100,5,5
100,1,1 78,23,18
67,3,2
100,3,3
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
0,2,0