eshaz / icecast-metadata-js

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

onMetadataFailed Support! #78

Closed lexterror closed 3 years ago

lexterror commented 3 years ago

Hi, Im trying to get feedback after calling onMetadataFailed! Does it work for the metadata only? And not the entire Stream?

Thank you!

eshaz commented 3 years ago

onMetadataFailed is only called when ICY or Ogg metadata failed to be detected. See the link below for more information. This event assumes the stream connection was successful. It can only happen after the stream successfully connects and starts to return data.

https://github.com/eshaz/icecast-metadata-js/tree/master/src/icecast-metadata-js#callbacks

lexterror commented 3 years ago

Thank you!

lexterror commented 3 years ago

Hi eshaz!

I was able to get it working! Thank you for pointing out that it checks after it starts playing the stream!

I have a demo of my player here:

http://elounge.org

Thank you!