| The
DRS 2006 Webcasting Kit (29/12/2003)
This is a small but very powerful utility for the DRS 2006 radio automation
software. Basically it takes any sort of template files like HTML or
PHP files and manipulates them. Manipulating means it will search for
simple variables and then replace them with data that comes directly
from the DRS 2006 Analyzer. After this manipulation it is also able
to upload the new generated files to your webserver.
You can for example use this utility to create dynamic websites or even
java applets which will display the current and last title information
of your DRS 2006 radio station.
HTML:
1. Create any kind of file. For example a HTML file. In this file you
can use 6 kinds of variables:
@TIME1@, @TIME2@....@TIME50@
@ARTIST1@, @ARTIST2@....@ARTIST50@
@TITLE1@, @TITLE2@....@TITLE50@
@CATEGORY1@, @CATEGORY2@....@CATEGORY50@
@DURATION1@, @DURATION2@....@DURATION50@
@COMMENT1@, @COMMENT2@....@COMMENT50@
These variables represent the On Air Time, Artist, Title, Category (Type),
Title Duration, and the Comment field.
The numbers 1 to 50 specify the last 50 titles. 1 means last title (currently
playing), 2 means 2nd last title etc..The '@' makes the variable visible
for the Webcasting Kit.
You also have an option to display the next 3 upcoming titles. Simply
use these variables:
@NTIME1@, @NTIME2@, @NTIME3@
@NARTIST1@, @ARTIST2@, @NARTIST3@
@NTITLE1@, @TITLE2@, @NTITLE3@
@NCATEGORY1@, @NCATEGORY2@, @NCATEGORY3@
@NDURATION1@, @NDURATION2@, @NDURATION3@
@NCOMMENT1@, @NCOMMENT2@, @NCOMMENT3@
Note that this feature will only work with version 3.0 and above.
2. Add your template files in the 'Template Files (html, php etc.)'
box
3. Select the Local Destination/Upload Directory for Manipulated Template
Files.
Your template files will be loaded into the memory, manipulated and
then copied to this folder. Please use a different folder than the source
folder of the template files to prevent that these are replaced.
4. If you set your webserver information, then you can also let the
Webcasting Kit upload all files which are in the 'Local Destination/Upload
Directory for Manipulated Template Files' automatically. This can either
be done when a change is made or after a certain time preriod you have
set.
5. Finally hit the start button. The status of the Webcating Kit will
be displayed below.
PHP:
We have created an example PHP setup for you so you can display that
album art or URL in your playlist. You can download it here!
In the zip file, you will find:
- text files
- .jpg files
- a .php file
How does it work?
You put the .php file in your template directory
You upload all text files and image files to your remote directory (ftp).
You start the webcasting kit as usual, just add the new .php template.
Start DRS 2006 with the DEMO PLAYLIST.
The Webcasting Kit uploads the new template.
Then, it is magic: go to the url of your new template and see:
It displays artist, title, an image, a small bio and a link to the official
site of the current artist.
How to add your own images/texts to use
with this template:
Image: Just create a .jpg file 100x100, and call it "artist_title.jpg" (example:
The Gimmicks_Sorry.jpg)
Text: Just create a .txt file, and call it "artist_title.txt" (example:
The Gimmicks_Sorry.txt)
Error handling:
If no pic is available for the current item, it is not a problem: the "nopic.jpg" is
automatically shown.
If no text is available, "sorry, no info available" will
be automatically displayed.
|