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

Error on communicate to server #30

Open supamanluva opened 3 years ago

supamanluva commented 3 years ago

Hi,

I think i have tried everything now. Shoutcast server up and running.

Html5 player can see what song is playing and also get the album art. But it keep saying Error on communicate to server everytime i press the Play button. I get no sound at all. i have tried in config to set both http and with https. With ip, localhost and 127.0.0.1, domainname.. no success

Both tried it locally and on external server.

PHP 7.3.19-1~deb10u1 curl 7.64.0-4+deb10u1 amd64

Anyone have a clue?

supamanluva commented 3 years ago

Well i got it to work now http://ip:8000/admin should be in the 'url_streaming':

But it doesnt get Cover Art and Song name now :)

sensimedia commented 3 years ago

Try replacing line 245 in script.js: var audio = new Audio(URL_STREAMING); with: var audio = new Audio(URL_STREAMING + '/ stream'); worked for me.

supamanluva commented 3 years ago

Try replacing line 245 in script.js: var audio = new Audio(URL_STREAMING); with: var audio = new Audio(URL_STREAMING + '/ stream'); worked for me.

Hi,

Thanks but i fixed it like this;

var audio = new Audio("http:ip:8000/admin");

and in config.js i set http://ip:8000

Worked for me :)

thanks

annehuis commented 3 years ago

Hi Please help.....

i have a simular problem... i get either the information (album and songtitle/artist) or i get music. I have multiple streams and can't get it to work. Stream http://85.214.172.44:8000/stream/2/ i need the slash in the end otherwise it won't work at all...

changed evrything var audio and config nothing works

I did change the stream in http://ipadres:8000/triton2 and stil i wil not work anyone over here with a suggestion?

thanks in advance