Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Dynamic Parcel Music Controller not working!?

Laronzo Fitzgerald
Registered User
Join date: 20 Apr 2007
Posts: 6
05-25-2007 11:58
Hi guys, many thanks in advance for your help,

I made a dynamic parcel Video controller on a parcel, set the correct permissions, shared it with the right group, deeded it and hey presto, I can change the video stream dynamically from the controller with a choice of 5 presets.

llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_URL, url, PARCEL_MEDIA_COMMAND_PLAY]);

Now I am trying to do the same with Music. I've set the same perms, share and deeded it yet it doesn't work! The key function ofcourse is llSetParcelMusicURL()

Any ideas why? Cheers guys.

CODE


string title = "\"Title\"";
string url = "source.mp3";

default
{
touch_start(integer total_number)
{
if(llGetColor(2) == <1,1,1>)
{
llSetParcelMusicURL(url);
llSay(0,"Now playing "+title);
llSetColor(<0.01176, 0.95686, 0.13725>,2);
}else
{
llInstantMessage(llDetectedKey(0),title+" is already Playing");
}
}
}

Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
05-26-2007 07:47
The llSetParcelMusicURL function just sets the music URL, it doesn't force playing. AFAIK, there's no way to force a play of music unless you wrap the music stream into the video URL (using SMIL for instance).

There's also a problem with the color checking. You are checking to see if it's <1,1,1> but never setting it to that value, which means it'll always set the URL again when clicked. That shouldn't affect the actual URL setting though.
_____________________
Send me the last 4 digits of a valid SSN, I'll verify you are who you say you are, even if you aren't.