Meta Details - any ideas anyone?

IanJames

New Member
So - run into a little issue. We have the Luna Web Radio Player on our site (the updated version of the Native HTML5 radio player). We are on Icecast 2 - and have a SSL website. Our station is only 10 weeks old, so still learning... But managed to get the player working perfectly on our (wordpress) website.

Now as of yesterday, the song/artist currently playing no longer shows on the player - and I've no idea why. When you configure the player and generate the shortcode on the Luna website everything looks as it should do with the artist and title.

But when I copy and paste the shortcode on my website - no artist / title is shown. I have a feeling it might have something to do with the SSL... not sure what link from Internet-radio I should be using. If anybody can advise or has any ideas I'd be truly grateful!
 

IanJames

New Member

MoveDaHouse

Member
this is the exact same problem iam having with the same player, i have a feeling cors policy on the streaming servers is turned off after the updates they done on saturday as mine was working fine all week until then...:( or something has gone astray either way. at around 12pm saturday my player just stopped displaying current song title metadata using icy-metadata, this was the same time our directory listing & start page disapeared also, i did email support about it & they said they will look into it... still havent heard anything... i would wait for a response before keep messing with your player code as its prob fine...
 
Last edited:

IanJames

New Member
this is the exact same problem iam having with the same player, i have a feeling cors policy on the streaming servers is turned off after the updates they done on saturday as mine was working fine all week until then...:( or something has gone astray either way. at around 12pm saturday my player just stopped displaying current song title metadata using icy-metadata, this was the same time our directory listing & start page disapeared also, i did email support about it & they said they will look into it... still havent heard anything... i would wait for a response before keep messing with your player code as its prob fine...

Ah! Hello there - sorry to hear you are having problems too..... but I seem to have hit lucky today and have it working again. Being honest, I'm not entirely sure what exactly I did - but I have a feeling the issue lies with copying the shortcode from the Luna website - and pasting it directly into your web builder (wordpress etc).

It seems to me that by highlighting the shortcode text on the luna site - when you copy it, it seems to add a grey background to the text. You can only see this if you paste it in something like word. I think it is this grey background that is creating the problem! You need to make sure that each element in the shortcode has exactly one space between it. You may find some have 2...very hard to see, but if there are 2 the code will not work.

In essence, if your player works on the luna site when you configure the shortcode - you will be able to get it working on your site, but you just might need to double check that the layout of the shortcode is correct.. Also - if any field is to be left empty, there is no space between '' if you underand what I mean....and just to be sure it is two single ' quote marks that you need to use - not one double quote.

I'm not sure if this will help you - but please try again. As I said, I'm not entirely sure what I eventually did to get it working again - but if I can help you with yours please feel free to message me again and I can send you the exact shortcode that works for my site and you can amend it with your details. Hope this helps!
 

MoveDaHouse

Member
Hi Ian i had a look at your code with chrome & looks like you are using a cors proxy from heroku where as iam not mine was working fine all week till sat using icy-metadata, i did also see you comments about the code when copied which i have tried, also my code was put in my wordpress last week & was working fine all week till this saturday when they did some updates to the directory listings as iam also a client so it may have affected my streaming server, & my player code hasnt been changed since... my player is still working fine & playing my stream it just wont display the current song metadata & i have tried every diff way to send it, i have a feeling that the cors policy on my streaming server has gone astray & is no longer sending icy-metadata in the stream, i did also look into setting up a cors proxy on heroku as sugested by sodah but it looks too complicated lol i can get the icy-metadata to work on his test page but once put into my wordpress its not there... very frustrating as i thought i had it all sorted only for it to disapear saturday...now im pulling my hair out trying to get it working again lol. thanks for replying i will check my code for any spaces & see if that works...
 

IanJames

New Member
Hello! Just had a quick look at your website - love it! You know, that proxy code was already in the shortcode builder - it wasn't actually something I configured myself (just like you, proxyserver is well beyond me!!). One thing I did notice in your code though.... in the field streamurl= you have: 'https://uk7.internet-radio.com/proxy/movedahouse?mp=/stream' I have a feeling the /stream shouldn't be included in this section. You add the /stream to the field "mountpoint'. Is it worth checking that? Does the player work correctly on the Luna site?
 

MoveDaHouse

Member
thanks ian, everything works perfect on the luna test page either way i do it, just not on my site lol, iam using shoutcast v2 so dont use "mountpoint" variant, im also using a https proxy stream under "other" variant for the audio as my site is ssl & icy-metadata to fetch the current song data from the url that is working on the test page... like i said it was all perfect until saturday then it went along with our directory listing & start page so i dont think its anything to do with my code, im waiting from a reply from support as i think something maybe the cors policy is not working or they have turned it off lol, ive had to embed centovacast widgets to display metadata for now but they sometimes freeze & you have to refresh the page etc :(
 
Last edited:

More Support

Level 2 Support
Staff member
Sorry to hear you're having problems. We didn't make any changes to the CORS policy on saturday so I'm not sure why things stopped working for you then. It's interesting that it was working fine before because as far as I know the https stream doesn't contain any meta-data and is just a pure stream. Can you paste me your luna player "shortcode" configs?

We have purchased a copy of luna player to have a play with and managed to get it working with shoutcast 2 but with a few tweaks. For example movedahouse could use the following settings which take advantage of the ownmetadataurl setting combined with a yet to be released ssl proxy we're experimenting with. Essentially shoutcast2 has a url /currentsong which displays the meta-data which luna player can poll separately via the ownmetadataurl setting.

JavaScript:
        metadatatechnic: "ownmetadataurl",
        ownmetadataurl: "https://www.internet-radio.com/ssl/uk7/8000/currentsong",
        streamurl: "https://uk7.internet-radio.com/proxy/movedahouse?mp=/",
        streamtype: "shoutcast2",

As mentioned above, if you could both paste your luna player "shortcodes" config in this thread we can look further into the issue for you.
 

MoveDaHouse

Member
ive just tried that url for the current song & its working now, didnt work on the luna test page but itis now working on my site ... thats what i needed a custom url thanks
 

IanJames

New Member
Hello support... So 6 weeks on and - all of a sudden - the Luna Player has stopped showing the song metadata again! I've tried updating to the latest version of the player - and have also posted on the Luna support feed. The only thing they have come back with is that the Cors Proxy is offline. Is this something configured by Internet-Radio? I understand most things, but really can't understand this whole cors proxy server business and I've no idea how to set one up. I do understand it is needed because of mixed content (surely the radio feeds should be SSL by default?). If you have any ideas as to how I can get my code working properly, I'd really appreciate it... This is the configuration:

[lunaradio width='100%' height='450px' radiustopleft='0px' radiustopright='0px' radiusbottomleft='0px' radiusbottomright='0px' borderposition='none' bordercolor='rgba(255,255,255,1)' bordersize='0px' token='XmtfX2RTVlthIFVhIGdd' userinterface='big' backgroundcolor='rgba(14,16,21,1)' fontcolor='#ffffff' hightlightcolor='#fa225b' fontname='' googlefont='poppins' fontratio='0.4' radioname='Lymm Radio' scroll='true' coverimage='[URL]https://lymmradio.co.uk/wp-content/uploads/2020/06/lr-new.jpg[/URL]' onlycoverimage='false' coverstyle='circle' usevisualizer='fake' visualizertype='4' itunestoken='1000lIPN' metadatatechnic='fallback' ownmetadataurl='' corsproxy='[URL]https://sednaproxy.herokuapp.com/?q=[/URL]' usestreamcorsproxy='false' streamurl='https://uk2.internet-radio.com/proxy/magic1152?mp=' streamtype='icecast2' icecastmountpoint='/live' radionomyid='' radionomyapikey='' radiojarid='' radiocoid='sdef46f462' shoutcastpath='/live' shoutcastid='1' streamsuffix='' metadatainterval='20000' volume='90' debug='false']
 

MoveDaHouse

Member
Ian ask support to create you a custom current song metadata url *then use the "own metadata" policy in the player code generator & add that url, like they have for mine see above, works great & doesnt rely on a cors policy or icy-metadata & updates instantly from your own server. it may not show up on the generator page but will work once embeded in your site. mines been working flawless since. bare in mind iam shoutcastv2 so not sure they can do this for icecast2 but worth inquiring.
 
Last edited:

More Support

Level 2 Support
Staff member
Hello support... So 6 weeks on and - all of a sudden - the Luna Player has stopped showing the song metadata again! I've tried updating to the latest version of the player - and have also posted on the Luna support feed. The only thing they have come back with is that the Cors Proxy is offline. Is this something configured by Internet-Radio? I understand most things, but really can't understand this whole cors proxy server business and I've no idea how to set one up. I do understand it is needed because of mixed content (surely the radio feeds should be SSL by default?). If you have any ideas as to how I can get my code working properly, I'd really appreciate it... This is the configuration:

[lunaradio width='100%' height='450px' radiustopleft='0px' radiustopright='0px' radiusbottomleft='0px' radiusbottomright='0px' borderposition='none' bordercolor='rgba(255,255,255,1)' bordersize='0px' token='XmtfX2RTVlthIFVhIGdd' userinterface='big' backgroundcolor='rgba(14,16,21,1)' fontcolor='#ffffff' hightlightcolor='#fa225b' fontname='' googlefont='poppins' fontratio='0.4' radioname='Lymm Radio' scroll='true' coverimage='[URL]https://lymmradio.co.uk/wp-content/uploads/2020/06/lr-new.jpg[/URL]' onlycoverimage='false' coverstyle='circle' usevisualizer='fake' visualizertype='4' itunestoken='1000lIPN' metadatatechnic='fallback' ownmetadataurl='' corsproxy='[URL]https://sednaproxy.herokuapp.com/?q=[/URL]' usestreamcorsproxy='false' streamurl='https://uk2.internet-radio.com/proxy/magic1152?mp=' streamtype='icecast2' icecastmountpoint='/live' radionomyid='' radionomyapikey='' radiojarid='' radiocoid='sdef46f462' shoutcastpath='/live' shoutcastid='1' streamsuffix='' metadatainterval='20000' volume='90' debug='false']

Hi Ian

It looks like something might have changed at the corsproxy 'https://sednaproxy.herokuapp.com/?q=' you're using. It's nothing to do with us. You might like to try replacing it with 'https://cors-anywhere.herokuapp.com/https://uk2.internet-radio.com' which might work. I've not tested this though. If not then you can try configuring Luna Player like @MoveDaHouse has suggested. In your case the pertinent settings would be:

JavaScript:
metadatatechnic: "ownmetadataurl",
ownmetadataurl: "https://www.internet-radio.com/ssl/uk2/8288/nowplaying.xsl",

Basically I've created some custom xsl markup for your Icecast2 server to display plain text of what's playing on /live in a similar way it's done in Shoutcast 2. That URL ownmetadataurl is proxied through to your server via https so shouldn't fall foul of the new mixed content issues in most browsers.

Let us know how you get on.

More Support
 

IanJames

New Member
Hi Ian

It looks like something might have changed at the corsproxy 'https://sednaproxy.herokuapp.com/?q=' you're using. It's nothing to do with us. You might like to try replacing it with 'https://cors-anywhere.herokuapp.com/https://uk2.internet-radio.com' which might work. I've not tested this though. If not then you can try configuring Luna Player like @MoveDaHouse has suggested. In your case the pertinent settings would be:

JavaScript:
metadatatechnic: "ownmetadataurl",
ownmetadataurl: "https://www.internet-radio.com/ssl/uk2/8288/nowplaying.xsl",

Basically I've created some custom xsl markup for your Icecast2 server to display plain text of what's playing on /live in a similar way it's done in Shoutcast 2. That URL ownmetadataurl is proxied through to your server via https so shouldn't fall foul of the new mixed content issues in most browsers.

Let us know how you get on.

More Support


Wow that is amazing help from you - thank you so much for sorting an xsl link for me, that works perfectly now. I can't thank you enough!!
 
Top