gsavio / player-shoutcast-html5

Responsive HMTL5 Web Player for SHOUTCast and Icecast streamings with cover art and lyrics
https://guilhermesavio.dev/player-shoutcast-html5/
MIT License
92 stars 59 forks source link

New Version doesn't show metadata and pictures #32

Open LordFader opened 3 years ago

LordFader commented 3 years ago

Hello and thank you so much for your work. I use a old version of your work and it works ok on my Working Test

A few week ago I download the last version and try it... but only the sound is playing on my Not Working Test

I use the same configuration data in both.

I notice in the Second version it only recognize my stream if I finish with "http://mystream:port/stream"

I'm not good in scripting/programing but there is something different in the .js config files eg:

Thank you Talvez na próxima te possa explicar em Português se quiseres. :-)

PoerOne commented 3 years ago

Try this if stream with shoutcast:

  1. On your config.js : 'url_streaming': 'https://yourstreaming_server:port', 'stream_path': '/your_streampath 'streaming_type': 'shoutcast',

  2. On your script.js : Add on line 31 : const STREAMPATH = settings.stream_path; And change line 245 to var audio = new Audio(URL_STREAMING + STREAMPATH );

Hope this works fine. Tks.

LordFader commented 3 years ago

Thank you so much for your help @PoerOne . I tried what you did. Stream is playing but doesn't grab metadata and covers. My stream is Icecast. Here is a test: https://player.lordfader.tk

PoerOne commented 3 years ago

Hi @LordFader ,

You can't mix http & https on your jquery.showinfo.js & icecastInfo.js. Just try remove first this file first and try again.

Tks