Embed a simple HTML music player from local audio on your website using MediaElement.js and Color Thief. Inspired by Spotify’s embed player.
(Fullscreen Live Demo)
/player/song.html
{SONG-NAME}
for the title of your page.{MP3-SOURCE}
for the audio that will be played when you press the play button.{ARTWORK}
for the image that will be displayed./player/just-stay.html
.Color Thief will detect automatically the dominant color of your song image for your player.
{YOUR-HTML-PLAYER}
with your HTML filename inside the folder /player
and paste it on your site where you want your audio player to appear.
<iframe src="/player/{YOUR-HTML-PLAYER}.html" width="300" height="385"></iframe>
(Example of use on a website using iframes: Dimatis Website)
<iframe src="/player/{YOUR-HTML-PLAYER}.html" width="100%" height="450"></iframe>
(Another example of use on a website using iframes: Dimatis - Fly Again)