Dradis music player v0.2

by DRADIS.be

Demo

The Dradis music player v0.2 demo is available here.

Introduction

You have a web server set up with a music folder so you can listen to your favorite music on the go. But you need a simple yet efficient HTML5 music player with a playlist and covers without too much hassle. You may have thousands of music files and no time to build a pretty playlist by hand.

Features

Screenshots

A screenshot showing the interface of the Dradis music player v0.2 with cover, controls and playlist visible.
A screenshot showing the interface of the Dradis music player v0.2 with oscilloscope visualization, controls, all options activated and playlist visible in simple mode.
A screenshot showing the help screen, accessible with H.

User feedback

好用! 这是一个小但有用的播放器。

— Kim, China

Le lecteur de musique de DRADIS est absolument top, combinant une installation rapide et une facilité d'utilisation remarquable.

C'est un choix parfait pour ceux qui recherchent un lecteur à la fois simple, fonctionnel et agréable à utiliser.

— Roger-Pierre Koff, France

Your feedback is important to us. Send your thoughts to music-player@dradis.be.

Quick setup

Generate a playlist file using the following Linux/MacOS command in the root of your music folder:

$ find ./ -type f \( -iname "*.aac" -or -iname "*.flac" -or -iname "*.ogg" \
        -or -iname "*.mp3" -or -iname "*.mp4" -or -iname "*.wav" \
        -or -iname "*.webm" -or -iname "*.apng" -or -iname "*.avif" \
        -or -iname "*.bmp" -or -iname "*.gif" -or -iname "*.jfif" \
        -or -iname "*.jpeg" -or -iname "*.jpg" -or -iname "*.pjp" \
        -or -iname "*.pjpeg" -or -iname "*.png" -or -iname "*.webp" \) \
        | sort --numeric-sort > playlist.txt

Download the file player.html (73kB) into the root of your music folder:

$ wget -q https://dradis.be/music-player/player.html

Navigate to the file player.html in your web browser and enjoy!

User manual

For more information, refer to the user manual.

Change log

version 0.2:
Created a unique hash used in local storage to separate multiple instances on the same website.
Better, faster help screen. Added a help button on mobile, and handling of the back button.
Sped up the playlist heavy operations.
Error handling: "The play() request was interrupted" (https://goo.gl/LdLk22).
Gesture handling: left/right and up/down to skip a track or folder.
Clicking the playlist starts playing the selected track if in pause.
Synchronized local storage values in case of multiple instances of the same music player.
Changed the audio pipeline to use gain after the analyser.
Better handling of visualisations change when the cover is still loading.
Fourth vizualisation: spetrogram.
Added a little "Now playing" popup on mobile.
Implemented mediasession metadata and published the music player functionnalities.
Added a logo on the loading and help screens.
Big numbers formatting.
Lot of bug fixes.
Reorganized sections of code.
version 0.1:
First pre-release.

Contact

Please use music-player@dradis.be to contact us. Feedback is appreciated. Say hello!