View Code? Open in Web Editor
NEW
vanilla JS audio player script (for .mp3, .ogg)
Home Page: https://zloid.github.io/audio-player/
HTML 16.47%
JavaScript 61.49%
CSS 22.04%
audio-player's Introduction
Audio player on vanilla JS
ES5 player.min.js compiled size: 1.62 KB gzipped (4.84KB uncompressed) after Closure Compiler, Advanced Optimization
- Put HTML5 <audio> elements in a html page
- Connect player.js to the same html page (+ css)
- Put <div id="AudioPlayerByZloid"></div> in the same html page. Bingo!
Windows >= 10, last version of
- Android: Chrome
- iOS >= 15: without sound muting