3 ms·
I always like minimal software like this. I've been making and using my own music player for 8 years. And my player still a single html file under 300 loc. I a
by soruly 5y ago
I always like minimal software like this.
I've been making and using my own music player for 8 years. And my player still a single html file under 300 loc. I also stick with nginx autoindex_format json so I don't need to run a backend server.
For searching I put all music files in one single folder so I can just use the "Find in page" in Chrome.
https://github.com/soruly/music/ https://github.com/soruly/music/
You may also take a look at MediaSession. You can have media controls with CD covers on mobile lockscreen/notification center in just 20 lines of code.
https://developer.mozilla.org/en-US/docs/Web/API/MediaSession https://developer.mozilla.org/en-US/docs/Web/API/MediaSessio...
- dusted 5y agoThat's nice! I didn't consider dumping the database to the browser and searching there, but I tried just dumping all the links on one page, and the browser disagreed a bit with the size of the page (it was over 100 mib)