Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xi/xiply
- Owner: xi
- License: gpl-3.0
- Created: 2015-01-11T21:11:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T21:57:43.000Z (almost 6 years ago)
- Last Synced: 2024-03-09T03:27:45.665Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
xiply.js - very simple js/html5 audio player
Example usage:
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