[sldev] Artist/Song info from audio stream - what to do with it?
Callum Lerwick
seg at haxxed.com
Fri Jul 6 14:43:37 PDT 2007
On Fri, 2007-07-06 at 22:07 +0100, EponymousDylan Ra wrote:
> Hi all
>
> I'd like to be able to display in-world the artist and song name from
> the audio stream that is currently playing.
>
> Extracting the information from the audio stream looks easy. In fact,
> the code to do it is already in audioengine_fmod.cpp - just commented
> out for some reason.
>
> My question is - what do I do with this information once I've got it?
> I guess it needs to be accessible from script, so does that imply
> adding a new script method, e.g. llGetParcelMusicInfo()? Or maybe
> there's already some generic GetData() method that I could piggy-back
> on? I guess ideally the data would be pushed as an event to a script,
> so the script doesn't have to poll for the info.
Scripts run sim-side, audio streaming is entirely client side. You can't
really connect the two very easily.
I've hacked together a system, where my oddcastv2-xmms streaming source
uses the songchange plugin to call a python script that makes an XML-RPC
call to push the metadata to an in-world object.
Apparently there's another system about that apparently involves an
in-world script polling the streaming server directly over http. I
haven't gotten my hands on it so I don't know the details.
Really, I'd like to rework the streaming UI to be more than a couple
buttons and a slider on the bottom of the screen, I'd like to make it a
full floating window, which can display metadata and whatnot.
I'd also like to eliminate the property owner monopoly on streaming
music, what I'd really like to see is a "Radio Station" object that
could be freely passed around, and played in any location, much like a
landmarks and notecards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070706/1bdabf3e/attachment-0001.pgp
More information about the SLDev
mailing list