Did I botch this code?

Greetings all:

I have a client who supplied me with some javascript (see below) to stream her radio station on her site (built using SeyDesign’s payn theme).

For some reason, it’s not working.

Have I missed something?

Any thoughts or advice would be greatly appreciated.

As always, my thanks in advance.

All the best,


<script>(function (win, doc, script, source, objectName) { (win.RadionomyPlayerObject = win.RadionomyPlayerObject || []).push(objectName); win[objectName] = win[objectName] || function (k, v) { (win[objectName].parameters = win[objectName].parameters || { src: source, version: '1.1' })[k] = v; }; var js, rjs = doc.getElementsByTagName(script)[0]; js = doc.createElement(script); js.async = 1; js.src = source; rjs.parentNode.insertBefore(js, rjs); }(window, document, 'script', 'https://www.radionomy.com/js/radionomy.player.js', 'radplayer'));
radplayer('url', 'positivelisteningradio');
radplayer('type', 'medium');
radplayer('autoplay', '0');
radplayer('volume', '50');
radplayer('color1', '#000000');
radplayer('color2', '#ffffff');
<div class="radionomy-player"></div> 


Testing here, Its in an eternal redirect loop. The embed may require an access token, or the url of the page the code is used may be required in the stations settings. Using the code here causes this eternal loop anyway.

On your url you have to many script tags. I suspect you just entered the code into the incorrect section of the page inspector. You should add the script just as you have shown it above into the header section of the page inspector. Then add the div (the html portion) to an html stack in the page.

Currently to many script tags…

1 Like

Thank you so much for your help!

I’ll work on this and see what I can do.

One last question (I hope):

Could those excessive script tags affect or interfere with the station’s streaming?

Adding your script (inside script tags) to the header section of the page inspector, or site wide code, instead of the javascript section will take the need for that question away.

But since you asked, the answer is most definitely yes. As it is in the screenshot above, its completely broken.