Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Trigger Video Stream..

sounds Turner
Registered User
Join date: 13 Sep 2005
Posts: 160
04-09-2007 21:48
Hi,

How would you have a video play when someone enters a room?

Thanks
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-10-2007 00:48
From: sounds Turner
Hi,

How would you have a video play when someone enters a room?

Thanks


Detect when they enter, a volume detect prim llVolumeDetect would be best then start the media stream llParcelMediaCommandList
sounds Turner
Registered User
Join date: 13 Sep 2005
Posts: 160
Reply..
04-10-2007 03:37
Thanks for your reply Newgate,

But i dunno how to do this, is there something i can use?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-10-2007 03:57
From: sounds Turner
Thanks for your reply Newgate,

But i dunno how to do this, is there something i can use?


You could try reading the wikki....


At it's simplist the following will work as long as all of the Media URL parameters
CODE


string Texture = "texture of media stream";
string Url = "url of stream to play";

default
{
state_entry()
{
llVolumeDetect(TRUE);
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_STOP] );
llSleep(1);
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_UNLOAD] );
llSleep(1);
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_TEXTURE, Texture] );
llSleep(1);
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_URL, url] );
}

collision_start(integer total_number)
{
llParcelMediaCommandList( [PARCEL_MEDIA_COMMAND_PLAY] );
}

on_rez(integer num) { llResetScript(); }
}


The sleeps are not strictly necesary but I have found problems if they are not included.