Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xi/xiply

very simple js/html5 audio player
https://github.com/xi/xiply

Last synced: about 1 month ago
JSON representation

very simple js/html5 audio player

Awesome Lists containing this project

README

        

xiply.js - very simple js/html5 audio player

Example usage:


This is a nice song: Track 1


But this one is even nicer: Track 2




init_xiply(document.getElementById('player'));

xiply.js will add an audio element to the `player` div.
When you click a `track` it will start playing.
When it is finished playing it will automatically start the
next `track` from the same `player` div.

`init_xiply` returns the generated audio element. Two additional event types
will be triggered on this element: `'selectTrack'` and `'unselectTrack'`. In
both cases, `event.detail` contains the title.

xiply.js tries to be accessible and degrade gracefully