eshaz / icecast-metadata-js

Browser and NodeJS packages for playing and reading Icecast compatible streaming audio with realtime metadata updates.
155 stars 20 forks source link

Station name from metadata? #175

Closed alariej closed 1 year ago

alariej commented 1 year ago

Sorry if I'm missing the obvious, but is there a way to retrieve the official station name from the stream metadata? Or is there an API call specifically for that?

Thanks for the great library. I'm using it in a small vite+react+electron project and it works perfectly.

eshaz commented 1 year ago

You can use the icecast-metadata-stats library for this. There are a few API calls that provide this information, depending on if you are using Icecast or Shoutcast. You can try these out in the demo with your station to see which one works for you.

alariej commented 1 year ago

Many thanks, exactly what I was looking for :-)