Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Group Land + PARCEL_MEDIA_COMMAND_AGENT?

bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
01-30-2008 20:50
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)
_____________________
Bucky Barkley -- Mammal, Scripter, Builder, Lover
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
doh.. choose the right group ;)
01-30-2008 23:12
Lots of fun to deed an object to the wrong group for video on a parcel..

Anyways - great code here:

http://johannahyacinth.blogspot.com/2007/08/more-fun-with-media.html
_____________________
Bucky Barkley -- Mammal, Scripter, Builder, Lover
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-31-2008 02:31
I hear it's also nice for streaming sound to specific avatars, (just omit the video prtion of the stream, build the audio in and poof). unfortunately I'm not aware of software that will build such a stream on the fly.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Wordfromthe Wise
Cheerless & Sorrowful
Join date: 31 Jan 2007
Posts: 18
02-19-2008 07:21
there seems to be another Thread where this issue is discussed.
The Thread can be found here:

/54/a1/241764/1.html



From: bucky Barkley
Lots of fun to deed an object to the wrong group for video on a parcel..

Anyways - great code here:

http://johannahyacinth.blogspot.com/2007/08/more-fun-with-media.html
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
02-19-2008 08:07
You can use the code I posted in this thread (/54/95/209152/1.html) to play MP3-Streams to different AVs. Beware, the first script is buggy - there's a 2nd one further down in the thread :)

Also, if you use this script, make sure you check the «Auto Scale Content»-Box in the Media-Tab in the Land info because when you play a MP3-Stream the media has no dimensions at all because it's just a stream and not a video. So when the box is unchecked and the stream is attempted to be played, the Client tries to set the dimensions of the video, which are NULL (I guess). This might cause a division by zero somewhere which causes the client to crash. With the box checked, the Client just sets the dimensions to zero (which they are) and then plays the stream...

It actually shouldn't be a problem to adapt this script to play videos as well (since the functionality is more or less the same)...
bucky Barkley
Registered User
Join date: 15 May 2006
Posts: 200
02-19-2008 08:54
on mp3s..

Another thing you can try is to point to a UUID of a texture that is hidden on the parcel somewhere (a swatch of transparent somewhere...) Dont have to see it to hear it.

as for video..

I have it going pretty well! See my picks for the MuMu (Museum of Music). The British Invasion exhibit makes a lot of use of personal video.

I'll have more to say when I have time. Multiple 100% alpha textures with varying UUIDs are pretty handy..
_____________________
Bucky Barkley -- Mammal, Scripter, Builder, Lover
Wordfromthe Wise
Cheerless & Sorrowful
Join date: 31 Jan 2007
Posts: 18
example on that Webpage
02-22-2008 07:36
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
FireEyes Fauna
Registered User
Join date: 26 Apr 2004
Posts: 138
02-22-2008 09:11
You're setting the URL to "message", not the variable message.

Also, You can't use the llDetected functions in a listen event, they don't have a value. Instead use the id that is passed from the event.

CODE

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, id,
PARCEL_MEDIA_COMMAND_TEXTURE,(key)llGetTexture(0)]);
}

}