Re:Show HN: Simple access to your music from the web
by dusted on Tuesday October 19, 2021 @02:03AM
(#28915279)
That'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)
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/
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/MediaSessio...