node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

audio-component

audio

Sexy radial audio player skin for the <audio> tag.

html5 audio tag style

Installation

$ component install component/audio

Example

<audio src="your-source-here"></audio>
<script>
  var audio = require('audio');
  var el = document.querySelector('audio');
  audio(el);
</script> 

API

.toggle()

Toggle play state.

.play()

Start playback.

.pause()

Pause playback.

License

MIT