This page is for broadcasters that want to create a Icecast popup page with an HTML player and current song. Make changes to the code in Red.

MZR Player Popup (Icecast)

Example:  

Code:
(add into the <head> section of your html)

<script TYPE="text/javascript">
function popup(mylink, yourPlayer) {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string') href=mylink;
else href=mylink.href;
window.open(href, yourPlayer, 'width=400,height=210,scrollbars=no');
return false; }
}
</script>

Link Code:
(Change link to your popup page name.)

<a href="#" onClick="window.open('YourPlayerTitle.html','windowname','resizable,width=400,height=210'); return false;">Player - Popup</a>

MZR Player Code:
Create new HTML file with name of link you used for popup window. Change the Torontocast Hostname and Port.

<!DOCTYPE html>
<html lang="en">
</head>
<body>

<img src="../images/Your Player Name .jpg">

<audio style="width:400px;" controls="true" id="rp1" src="Your Stream IP" type="audio/mp3">Your browser does not support the audio element.</audio>

<span class="cc_streaminfo" data-type="song" data-username="Your Centova username">Loading ...</span>

<script language="javascript" type="text/javascript" src="Get streaminfo.js from Centova Widgets"></script>

</body>
</html>