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
93 stars 58 forks source link

no covers displayed and no song title #34

Open kosmmo opened 3 years ago

kosmmo commented 3 years ago

we have followed all the guides here, curl is all running we know that as our other sites display song feeds ok here is the link https://maxxradio.net/player/ we are just at a loss now as we dont know how to solve this please help asap

DirtySkeMe commented 3 years ago

What is the information in your conf?

kosmmo commented 3 years ago

`

/* -------------------------------------------------------------------------- Configuration
To configure your streaming, define the name of your radio, url and
type of your streaming below.

*/

var settings = { 'radio_name': 'Maxx Radio',

// URL of streaming without / on the final, eg: https://streaming.com:8080
'url_streaming': 'https://sonic.onlineaudience.co.uk:10944',

// URL of streaming sound,  https://streaming.com:8080/stream
'url_streaming2': 'https://sonic.onlineaudience.co.uk:10944/stream',

// When choosing icecast, make sure the file 'player.log' in the document root is writeable.
// Choose between 'shoutcast' or 'icecast'
'streaming_type': 'shoutcast',

// URL Lyrics Api 
'api_url': 'http://api.chartlyrics.com/',

// Set to true to get the last songs played
'historic': true,

 // Visit https://api.vagalume.com.br/docs/ to get your API key
'api_key': '5aa21225d71896cd57d4eb9be1005801',

// Only for SHOUTCast!
// Set to true to show the next song to be played. 
// Make sure your streaming show this information!
'next_song': true,

// Path to default cover art when none are found
'default_cover_art': 'assets/img/logo.png',

// url of proxy, see https://github.com/Rob--W/cors-anywhere/
'proxy_url': 'https://limitless-savannah-61399.herokuapp.com/'

};

const RADIO_NAME = settings.radio_name; const URL_STREAMING = settings.url_streaming; const URL_STREAMING2 = settings.url_streaming2; const STREAMING_TYPE = settings.streaming_type; const API_KEY = settings.api_key; const HISTORIC = settings.historic; const NEXT_SONG = settings.next_song; const DEFAULT_COVER_ART = settings.default_cover_art; const PROXYURL = settings.proxy_url; const APIURL = settings.api_url;`

DirtySkeMe commented 3 years ago

I did have a issue using my https on the first settings did use the http for get the streaming info something to do with my https using cloudflare I think

joeyboli commented 3 years ago

In order for the songs title to show, you must have two icecast icecast mountpoints on the same server, Check Out my site https://player.boxradio.me/WEEB

i use a different url for the metadata calls which i have hard coded in the api.php file and use a regular proxy url to stream the radio.