A Tiny, Minimalistic JS Audio/Music/MP3 Player | microne

microne is a compact and minimalistic JS music player. It’s around 2Kb and it’s very pretty in this library to create an audio/music / MP3 player using HTML and regular JavaScript.

How to make use of it:

Create a container for the audio player.

<div id="player"></div>

Download and insert the ‘microne.js’ library into the doc when wanted.

<script src="microne.js"></script>

Initialize the audio participant.

var m = new Microne(document.getElementById('player'))

Specify the path to your audio file.

m.source('audio.mp3')

Play/pause the audio.

m.play();
m.pause();

API

new Microne(parent_el)

Makes a new player and appends it to the parent_el element. parent_el must have a specified width and height microne fills it.

m.source(href[, preload])

Sets the source of the player to href. If preload (optional) is false the audio will only be loaded at play? Default is true.

m.play()

Start playing.

m.pause()

Pause playing.

m.on(event, handler)

Add an event to the audio element.

Minimalist Audio Player, microne Plugin/Github


See Demo And Download

Official Website(kodedninja): Click Here

This superior jQuery/javascript plugin is developed by kodedninja. For extra Advanced Usage, please go to the official website.

Share