Album cover on website
Re: Album cover on website
Hello Bernd,
I will try to explain what I'm looking for..
The 'test.html' works fine! But there only the songartist en songtitle information in it. And I like to get the albumcover info also in that html.
I already understand that there are macros for this. But I don't excactly know where to "place" these macros...
I will try to explain what I'm looking for..
The 'test.html' works fine! But there only the songartist en songtitle information in it. And I like to get the albumcover info also in that html.
I already understand that there are macros for this. But I don't excactly know where to "place" these macros...
rockfiles.nl 110% rock radio!!
the no.1 rock & metal station!!
the no.1 rock & metal station!!
Re: Album cover on website
Ok!! So I just need to fill in the line in "test html", that is located on a map on my computer and automaticly uploads to my server?
rockfiles.nl 110% rock radio!!
the no.1 rock & metal station!!
the no.1 rock & metal station!!
Re: Album cover on website
You should save it as template.php and test.php
Re: Album cover on website
Is that all
So I need to adjust the "test html" and "template html" and fill in this next line in both..
<?php echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >"; ?>
So I need to adjust the "test html" and "template html" and fill in this next line in both..
<?php echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >"; ?>
rockfiles.nl 110% rock radio!!
the no.1 rock & metal station!!
the no.1 rock & metal station!!
Re: Album cover on website
Create a template.php with this in it.
Code: Select all
<HTML>
<script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script><script>
<!--
/*
Auto Refresh Page with Time script
*/
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:45"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+"Station naam"
window.status=curtime
setTimeout("beginrefresh()",1000)
}
}
window.onload=beginrefresh
//-->
</script>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #FF9900;
font-weight: bold;
}
body {
background-color: #020202;
background-image: url();
}
.style3 {color: #FF0000}
.style6 {color: #666666}
.style9 {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style11 {color: #FFFFFF}
.style13 {color: #658BD8}
-->
</style>
<BODY>
<p class="style1"><span class="style13">Current Track:</span> <span class="style11"> <?php
echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >";
?>${currenttrackname}</span></p>
<p class="style1"><span class="style3">Next:</span> <span class="style11"><?php
echo "<img src=data:image/jpg;base64,${nextalbumart} width='200' height='200' border='0' title='${nexttrackname}' >";
?>${nexttrackname}</span></p>
</BODY>
</HTML>
Last edited by atlantic on 16 Apr 2013 16:30, edited 1 time in total.
Re: Album cover on website
No, the test.html is created out of the template.html, by replacing all macros....so you only need to adjust the template file!
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Album cover on website
You can place this line into your template file (as posted by the user):
The resulting test file might not work locally anymore (as it requires PHP to be installed/available) - but it should work fine on your web-site (assuming you have PHP available there).
Code: Select all
<?php echo "<img src=data:image/jpg;base64,${currentalbumart} width='200' height='200' border='0' title='${currenttrackname}' >"; ?>
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Album cover on website
Yes - I mean the line given is just a sample...you might modify the template a bit more, so that it is aligned to your web layout...but basically yes - that's all.
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Album cover on website
A good place is the global event called "Streaming.OnSongTitleChanged" - see general settings, section 'Events/Commands'.
Bernd - radio42
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
ProppFrexx ONAIR - The Playout and Broadcast Automation Solution
Re: Album cover on website
Hi,
for our dab transmitting we want to use the album art for the slideshow (some radio's can show this).
We simply want to copy the album art from Proppfrexx to a given map (so the dab mux can handle this).
What command can we use?
EXEC_SHELL_COMMAND or
EXEC_WRITE_FILE
Thanks.
Gerrit
for our dab transmitting we want to use the album art for the slideshow (some radio's can show this).
We simply want to copy the album art from Proppfrexx to a given map (so the dab mux can handle this).
What command can we use?
EXEC_SHELL_COMMAND or
EXEC_WRITE_FILE
Thanks.
Gerrit