I don't know if you are aware that the web interface can only play
scheduled content (you need to put the songs in a playlist, and set a
time in advance when the playlist will start playing).
There are two ways of doing what you want, neither of them super-easy.
The other way is to modify the web interface; this is easier to do
because it is written in PHP, not C++ like the scheduler.
Unfortunately, you won't be able to get real-time information this
way. What the web interface currently does (to display its "Now
playing" information) is to query the database containing the schedule
of programs, and deduce what _should_ be playing at the moment. It is
probably not too hard to find this function in the web interface's
code, and add your hook there.
The third option is to file a feature request on the Campcaster bugtracker: http://code.campware.org/projects/campcaster
(log in as "guest" with the password "campware", and click on "New
ticket"), and wait until they implement this feature for you. Feature
requests which come with some money get filled quicker.
Hope this helps,
Ferenc
On Dec 12, 2007 8:50 PM, wrote:
> Author: marduk
> Link: http://code.campware.org/phorum/read.php?20,5988,5988#msg-5988
> --------------------------------------------------------------------------------
>
> Hi - I need to know the currently playing song. Is there a way to grab that information from Campcaster in real time? Ideally, I would like Campcaster to make an HTTP request with current song's filename as the parameter at the beginning of each song. Any pointer is appreciated.
>
> Thanks.
>
> PS. I intend to use web interface only.
>
> --
> Sent from Campware Forums
> http://code.campware.org/phorum
>