webamp
webamp copied to clipboard
Sketch out m3u support
Fixes #693
Update: You now have to pass ?m3uUrl=mp3/test.m3u in the URL to try the m3u support.
I recently added m3u support external to Webamp within my app, if anyone has interest in doing it that way. I am using it to be able to load some of the m3u's on https://somafm.com/ which seem to allow CORS (although I haven't tested this on my production site, so it might allow localhost).
I used https://github.com/freearhey/iptv-playlist-parser for parsing the files as it seemed to work better than https://github.com/videojs/m3u8-parser for getting relevant meta data.
I am using the same handler for both handleAddUrlEvent & handleLoadListEvent.
https://github.com/DustinBrett/daedalOS/commit/8969176c10044d8d48e899ae05712418bd87b382
UPDATE: Added PLS/ASX support and switched to playlist-parser.
https://github.com/DustinBrett/daedalOS/commit/e70e160d7582c66274493bdd939d3aa4acb5f262

This looks great - looking for this feature exactly for SomaFM :-)