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");
}
}
}