Hi,
I made a wordpress plugin that shows just the now playing, theres also a
standalone version that could be adapted. Behind the scenes this is one
db table with the following info:
time - Time the event started
artist
title
length - How long the song was
endtime - calculated end time (based on the time + length)
A little php for the table would do what you want. But first you need
now playing from Rivendell. I made an RLM module that spits output to a
php page (this page then puts it in the database).
General setup is as follows:
./create_table.sql: run this to create the MySQL table on your Website
./tvanowplaying.php: Simple HTML shows "The Voice Asia Live!" until the
javascript kicks in so edit that text if you want.
./tvanowplayingupdate.php: Called by JQuery to get the now playing info
./includes/functions.php: Change the MySQL details on line 12.
./includes/tva_nowplaying_functions.js: Change the jQuery.get URL to
match where tvanowplayingupdate.php lives
./rlm/rlm_wordpress.c: Compile this RLM module with Riv
./rlm/rlm_nowOrNext.php: Change the $MYSQL and $KNOWN_IPS and then put
this on your webhost.
./rlm/rlm_wordpress.conf: Sample RLM config file, change the hostname
to where you placed rlm_nowOrNext.php and change any other settings you
might want.
If you ignore the now playing stuff, all you need is to create the table
and then use the RLM files. You'd then need to make a php page to
display the table in a pleasing way.
The attachment was a few k too big for the mailing list so I've uploaded
it here: http://thevoiceasia.com/rivendell/tva_nowplaying_standalone.tar.gz
Regards,
Wayne
On 24/04/13 13:15, Morten Krarup Nielsen wrote:
Hi!
Has anyone set up a playlist on their website, so listeners can look
up the name of the song they've just heard?
If so, maybe the code could be posted here :-)
Thank you very much!
Kind regards,
Morten
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev