Submit your widget

Simple lightweight jQuery plugin with AudioControls

Created 3 years ago   Views 11592   downloads 2322    Author arunkumarsekar
 Simple lightweight jQuery plugin with AudioControls
View DemoDownload 2.1 MB
34
Share |

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/

You might also like