This plugin adds media support to Foswiki using MediaElement.js. MediaElement.js is an easy
cross-browser HTML5 audio and video player in pure HTML and CSS while providing a Flash or Silverlight fallback
for older browsers.
MediaElement.js is a fully skinnable player with features like support for the <track> element, fullscreen video, and even Ambilight.
It provides a consistent experience regardless of what codecs and plugins browsers support.
Note that MediaElementPlugin is not implementing a streaming media server, nor is it converting audio and video files in appropriate
file formats understood by today's browsers.
It is recommended to secure your attachments using Foswiki:Extensions/XSendFileContrib and not using Foswiki's native viewfile method.
This will relive Foswiki from the pure delivery of the media files and instead delegate the actual process of sending over files to
the HTTP server in use.
Usage
To embed a video or audio file into Foswiki, just upload it and add
%VIDEO{"myvideo.mp4"}%
to the topic page. You should get something similar to this:
Similarly, add
%AUDIO{"mysong.mp3"}%
to render an audio player for your song as part of the page.
boolean whether the player should pre-load the beginning of the audio file when the page is loaded
off
autoplay
boolean whether the audio should immediately start playing when the page containing the %AUDIO macro is loaded
off
start
seconds when to start the audio
0
skin
name of the skin used for the player: "default", "ted" or "wmp"
default
Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab → "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button.
Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the
search results.
You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
cd /path/to/foswiki
perl tools/extension_installer <NameOfExtension> install