Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.1 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.1 KB

audio.js

The Audio plugin provides an audio engine for playing back html5 audio similar to video with the html5 engine as it's not provided within Flowplayer 6 by default.

This feature simply requires css overrides to modify the styling of the player and enable the audio engine.

Examples

Basic Example

<div id="player" class="flowplayer fixed-controls play-button is-splash is-audio" data-embed="false">
        <video preload="none">
            <source type="audio/mp4" src="http://videos.electroteque.org/audio/Rakim.m4a">
            <source type="audio/mpeg" src="http://videos.electroteque.org/audio/Rakim.mp3">
            <source type="audio/ogg" src="http://videos.electroteque.org/audio/Rakim.ogg">
        </video>
</div>

Compiling

The audio.js distribution file is compiled with Uglify.js like so:

uglifyjs src/audio.js --comments --mangle -c > audio.min.js

Support

This is supplied as-is.

Demo

Fully functional demo available on the audio player features page http://flowplayer.electroteque.org/audio/fp5