This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

MediaElement.js – HTML5 Video & Audio Player


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 for more information and examples.

Typical Usage for video

[video src="" width="640" height="360"]

Typical Usage for audio

[audio src=""]

Shortcode Options


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

[mejsvideo src="" width="640" height="360"]
[mejsaudio src=""]


This location of any audio or video file

[video src=""]

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=""]


The media type of the resource

[video src="" type="video/mp4"]


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

[video mp4=""]


The location of an MP3 file for video

[audio mp3=""]


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"]


Loops the video or audio when it ends

[video src="" loop="true"]


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

[video preload="true"]


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

[video autoplay="true"]


Disables the fullscreen button

[video src="" fullscreen="false"]


Disables the duration output

[video src="" duration="false"]


Disables the volume slider

[video src="" volume="false"]


Disables the progress bar

[video src="" progress="false"]


URL to a WebSRT captions file

[video src="" captions=""]

Simple Video

Basic playback options

[video src="" width="640" height="360"]

All Attributes Video

All options enabled

[video mp4="" ogg="" webm="" poster="" preload="true" autoplay="true" width="640" height="264"]

Simple Audio

Basic playback options

[audio src=""]

All Attributes Audio

All options enabled

[audio mp3="" 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"]'); ?>


  • Video player


View for more information.

  1. Upload the media-element-html5-video-and-audio-player folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Use the [video] or [audio] shortcode in your post or page with the options on the front page.


Installation Instructions

View for more information.

  1. Upload the media-element-html5-video-and-audio-player folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Use the [video] or [audio] shortcode in your post or page with the options on the front page.
Where can I find out more?

Check out for more examples

What does this get me over other HTML5 players?

Most HTML5 players offer one player to modern browsers and then a competely separate Flash player to older browser. This creates an inconsistent look and functionality.

Instead, MediaElement.js upgrades older browsers, using Flash to mimic the entire HTML5 Media API. Then once all the browsers have something that looks like HTML5 Media, we build a consistent player on top using just HTML and CSS.

See original blog post at for a full explanation of MediaElement.js


13 снежня, 2018
Since Gutenberg is about removing MediaElement.js, this old extension is pretty welcome and it does its job if you use old short codes. But there's issues in the design and it's not gutenberg-ready. So fixing these tweaks would be great.
19 ліпеня, 2018
I could not follow the instructions. To many what if then cause but how Huh?? Sorry. I do not understand how to get this to work. Its a big DELETE for me.
24 лістапада, 2017
i tested on my website its showing error on pages. i tried with autoload and autoplay disabled, but its still enabled. so my ratings goes -1
Read all 25 reviews

Contributors & Developers

“MediaElement.js – HTML5 Video & Audio Player” is open source software. The following people have contributed to this plugin.




  • Updating to latest 4.x version


  • Updating to final version of 2.x line (WordPress 4.9 will have the 4.x branch)
  • Updated screenshot


  • Update to 2.2.5 codebase
  • Support for true fullscreen in Chrome and Firefox (in addition to Safari)
  • Support for 100% sizing


  • Skin selector (default, WMP, TED)
  • Audio height and width
  • Leave off the extension on the src attribute and files will be automatically detected


  • Updated to latest MediaElement.js code
  • Changed scripts to use wp_enqueue_script(“mediaelementjs-scripts”)
  • Changed styles to use wp_enqueue_style(“mediaelementjs-styles”)
  • Added [mejsaudio] and [mejsvideo] as valid short codes. WordPress’s Jetpack will now take over [audio]

  • Fixed a problem with WordPress SVN


  • Updated to 2.0.6 codebase


  • Lots of minor changes to JS code
  • better IE6 support


  • Plugin fix


  • Silverlight fix


  • Updated to 2.0.2 MEjs code

  • Loop fix
  • Video for Everybody Syntax (Works even when JavaScript is turned off)

  • Autoplay fix


  • Updated to 2.0.1 version


  • Updated to 1.1.5 version
  • Added options to turn controls on/off
  • Added loop option


  • Updated to 1.1.2 version
  • adds captions support and new style


  • Updated to 1.1 of player


  • Fixed URL bug
  • Fixed non-src bugs


  • First release.