player-shoutcast-html5 icon indicating copy to clipboard operation
player-shoutcast-html5 copied to clipboard

New Version doesn't show metadata and pictures

Open LordFader opened this issue 4 years ago • 3 comments

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:

  • Old version (it works): // URL of SHOUTCast streaming without / on the final, eg: http://streaming.com:8080 const URL_STREAMING = "http://mystream:port"; you end with --> ;
  • New version (don't work): // URL of streaming without / on the final, eg: http://streaming.com:8080 'url_streaming': 'http://mystream:port/stream', you end with --> ,

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

LordFader avatar Feb 14 '21 00:02 LordFader

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.

PoerOne avatar Apr 06 '21 08:04 PoerOne

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

LordFader avatar Jun 01 '21 19:06 LordFader

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

PoerOne avatar Jun 02 '21 20:06 PoerOne