Audio Controls – simple lightweight jQuery plugin

Category: Responsive, Slider, Slideshow 69 0
Audio Controls - simple lightweight jQuery plugin

Download   Demo

AudioControls simple lightweight jQuery plugin, helps you to create your own audio player, playlist and additional features.

Include script after the jQuery library (unless you are packaging scripts somehow else):

<script src="/path/to/jquery.audioControls.js"></script>

Do not include the script directly from GitHub (http://raw.github.com/…). The file is being served as text/plain and as such being blocked in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.

Data Attributes

Data attributes are heart of this plugin, attributes helps to detect and enables audio controls.

HTML attribute key must be data-attr

<a href="#" class="play" data-attr="playPauseAudio"></a>

This will enable Play and Pause control for the anchor tag.

Read more:http://arunkumarsekar.github.io/audioControls/

Related Articles

Add Comment