Small Module to play audio using HTML <audio> tag
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore initial commit Feb 22, 2014
LICENSE initial commit Feb 22, 2014
README.md formatting blocks Jun 7, 2017
index.js Update index.js Mar 19, 2014
package.json 1.0.1 Jun 7, 2017

README.md

simple-audio

Small Module to play audio using HTML audio tag

Also addresses the Chrome for Andriod issue 178297

Usage

HTML

<audio class="foo">
    <source src="foo.mp3"></source>
    <source src="foo.wav"></source>
    <source src="foo.ogg"></source>
</audio>

JavaScript

var audio = require('simple-audio');
audio.playSound('foo');