webamp icon indicating copy to clipboard operation
webamp copied to clipboard

Sketch out m3u support

Open captbaritone opened this issue 7 years ago • 3 comments

Fixes #693

captbaritone avatar Oct 25 '18 05:10 captbaritone

Update: You now have to pass ?m3uUrl=mp3/test.m3u in the URL to try the m3u support.

captbaritone avatar Oct 25 '18 06:10 captbaritone

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

image

DustinBrett avatar Jun 09 '22 04:06 DustinBrett

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

leosok avatar Apr 04 '23 02:04 leosok