Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MediaElement.js is an HTML5 video and audio player with Flash fallback and
captions. Supports IE, Firefox, Opera, Safari, Chrome and iPhone, iPad, Android.
== Description ==
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.
[audio src="http://mysite.com/mymedia.mp3"]
= Alternatives =
If you have a plugin that conflicts with MediaElement.js, you can also use the
short codes
= 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
= 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
= 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
= duration =
Disables the duration output
= volume =
Disables the volume slider
[video src="http://mysite.com/mymedia.mp4" volume="false"]
= progress =
Disables the progress bar
= 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
= Simple Audio =
Basic playback options
[audio src="http://mysite.com/mymedia.mp3"]
== Installation ==
== Changelog ==
= 2.1.7 =
* Skin selector (default, WMP, TED)
* Audio height and width
* Leave off the extension on the src attribute and files will be automatically
detected
= 2.1.4 =
* 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]
= 2.0.6.2 =
* Fixed a problem with Wordpress SVN
= 2.0.6 =
* Updated to 2.0.6 codebase
= 2.0.5 =
* Lots of minor changes to JS code
* better IE6 support
= 2.0.4 =
* Plugin fix
= 2.0.3 =
* Silverlight fix
= 2.0.2 =
* Updated to 2.0.2 MEjs code
= 2.0.1.2 =
* Loop fix
* Video for Everybody Syntax (Works even when JavaScript is turned off)
= 2.0.1.1 =
* Autoplay fix
= 2.0.1 =
* Updated to 2.0.1 version
= 1.1.5 =
* Updated to 1.1.5 version
* Added options to turn controls on/off
* Added loop option
= 1.1.2 =
* Updated to 1.1.2 version
* adds captions support and new style
= 1.1.0 =
* Updated to 1.1 of player
= 1.0.1 =
* Fixed URL bug
* Fixed non-src bugs
= 1.0 =
* First release.
== Upgrade Notice ==
None
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.
== Screenshots ==
1. Video player