I just POST mine to my websocket server. Whats the benefit of this over using 
http or a unix socket or whatever to send the data?

The problem which frustrated me is that if you have any buffering of your 
streams then your listeners get the metadata for the next song way before the 
current song has finished playing.

I had a look at the ICY protocol and it turns out if you add the request header 
`icy-metadata: 1` the server will write the metadata directly into the audio 
stream, so no more sync issues if you have buffers or laggy listeners, the 
metadata arrives with the audio.

That seemed like the best solution to me so I wrote a service worker script 
which adds the header and then extracts the metadata from the stream.

My service worker script and a link to a working demo are on 
[Github](https://github.com/cryptiksouls/icecast-shoutcast-metadata-grabber)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/515#issuecomment-411616135
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to