From: bucky Barkley
Should PARCEL_MEDIA_COMMAND_AGENT work on group land?
I am hoping so. The idea is for different AVs to see different videos at the same time:
http://robsmart.co.uk/2007/10/27/second-life-hidden-video-secrets/I've had this working on my own land a long time back, and am now wondering if there is a scripting detail or a permissions thing I need to do to get it working on group land (yes, deeded the object)
OK, i found the error you get if you are using that code from the Website.
The quotes character “” used in the example script on that Website must be
replaced with the real quotes character " .. but anyhow can not get it to work.
Also tried it out with an ALT Account .. Anybody has an idea ?
I post the quota replaced code here added some debug messages:
integer listen_handle;
default
{
state_entry()
{
listen_handle = llListen(10, "", "", ""

;
}
touch_start(integer total_number)
{
llSay(0, "talk on channel 10 to set your personal video for this land"

;
llSay(0, "Avatar that touched me"+(string)llDetectedKey(0));
}
listen( integer channel, string name, key id, string message )
{
llSay(0, "Setting Video play back to " + message);
llParcelMediaCommandList( [
PARCEL_MEDIA_COMMAND_URL, "message",
PARCEL_MEDIA_COMMAND_AGENT, (string)llDetectedKey(0),
PARCEL_MEDIA_COMMAND_TEXTURE, (key) llGetTexture(0) ] );
}
}
When i click on the Prim the Script listens on Channel 10.
I used /10
http://www.myserver/myvideo.mp4 in the Chat
(this is an example i used a correct url for that) and the object
responds with the correct message but the video stream will not
be switched. I tried it with an object deeded to my land and also
with a prim not deeded to my land.
what am i missing ?
best regards