Audio and video player

This plugin provides simple players for audio and video files. It relies on HTML5 standard elements and does not require Flash or other external browser plugins.
The plugin is licensed under GPL.

Download: Audio and video player

audiovideo1.0.1.zip (14.99 KB)

Usage

Simple audio player:
[audioplayer="attachs/file.mp3"]
Audio player with additional parameters (each optional):
[audioplayer="attachs/file.mp3" controls="0" autoplay="1" loop="1"]

Simple video player:
[videoplayer="attachs/file.mp4"]
Video player with additional parameters (each optional):
[videoplayer="attachs/file.mp4" controls="0" autoplay="1" loop="1" width="640" height="480" poster="images/posterimage.jpg"]

Parameters

Each of the following parameters is optional. If not set, the default value will be used.
For boolean parameters, the following values count as "true": true, 1, yes, ja, si.

Both audio and video

Video only

HTML+CSS

The player will be displayed as <audio> / <video> element with the CSS class "audiovideo". See the documentation of these standard HTML5 elements for further details.
The given parameters (see above) will be set to the player element accordingly.

Changelog

2020-12-19: Version 1.0.1

2017-08-12: Version 1.0