1.0.0-beta.2 • Published 5 years ago
wd-audio-player v1.0.0-beta.2
Audio Player
Audio Player for http://workingdraft.de/.
Usage
Install via npm or yarn
Implementation
HTML
You need to import this module’s styles to get a decent styling.
Add your audio file to HTML and wrap it in a container.
<div data-my-app>
<audio preload="auto" data-audio-player>
<source src="/test.mp3" type="audio/mpeg">
</audio>
</div>
Within your script you now need to initialize the player by building the markup and running the player’s functions.
import { Player } from 'wd-audio-player'
const config = {
// …
}
const element = document.querySelector('[data-my-app]')
new Player(element, config).initialize()
License
This project is under MIT license.
1.0.0-beta.2
5 years ago
1.0.0-beta.1
5 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.3
6 years ago
1.0.0-alpha.2
6 years ago
1.0.0-alpha.1
6 years ago
1.0.0
6 years ago