matthewp / phonograph.js

A player/manager for the <audio> tag in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This small JavaScript library is an easy way to manage a queue of items you are playing.

<script type="text/javascript">
  var player = Phonograph.create();
	
	var tracks = [ 'http://some.mp3', 'http://some-other.mp3' ];
	player.trackChanged(function() {
		alert("We're now playing a new track!");
	});
	player.play(tracks);
</script>

About

A player/manager for the <audio> tag in JavaScript.

License:Mozilla Public License 2.0


Languages

Language:JavaScript 100.0%