List Info

Thread: Is there a way to send metadata in a stream with LS pre 1.1?




Is there a way to send metadata in a stream with LS pre 1.1?
user name
2006-03-17 10:50:51
phorumcode.campware.org wrote:
> Sorry to keep asking, because I'm sure this all seems
so obvious for you, but it's kinda new for me, but, I've
got no idea how to do the exporting on the fly, and how to
send de signal to the ices...is there an option in
LiveSupport to write the metadata to a file somewhere?
lol 
I'm not a god in LiveSupport, But I know if you look at the

webinterface there is a way to view what is currently
playing. That is a 
thing that must come from *somewhere*. We have to find out
what updates 
that title and see if we can find the code to apply a
metadatafile patch.

So possible two solutions:
1) Ignore livesupport completely just fetch every 10 seconds
the 
webinterface and build our file.
2) Get into the code and look how livesupport does this.


The next step is to send the SIGUSR1 signal. With one
process of ices it 
is a simple "killall -s SIGUSR1 ices". So what
you can do for now:

Get Icecast2 running, install Ices, and configure it with
the 
metadatafile configuration. See if you can get the
'updates' to work, I 
will look at a dirty way and a preferred way.

If my time allows it, I will look at the second too, but I
need to build 
a Unreal Tournament level looking photo perfect before
Sunday, so I 
can't promise you a working prototype.


Stefan

Is there a way to send metadata in a stream with LS pre 1.1?
user name
2006-03-17 14:01:09
for the issue of how to get the metadata out of the
scheduler for what's
playing, you can use the displaySchedule XML-RPC method on
the
scheduler, as described here:

http://code.campware.org/livesupport-dev/xml-rpc_doc/ht
ml/classLiveSupport_1_1Scheduler_1_1DisplayScheduleMethod.ht
ml


you have to provide a timeframe, and it will return the
scheduler in
that frame. naturally providing a timeframe around the
current time will
tell you what's playing now in the schedule. the returned
playlistId can
be used to query more information about the playlist from
the storage
server, also via XML-RPC.


so, one could get this information via XML-RPC calls, and
then submit
this to icecast, so that it refreshes the metadata
information of the
stream.


Akos
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )