Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

simple public movie URL switcher on touch

Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
09-26-2008 06:03
I dug throught the forums and found this script, which works upon reset, so I assume that this is not compatable with the newer media parcel attributes. I bought a full mod tv system, but it is group only. What I need is the simplest media changer imaginable. A screen with 5 prim buttons beside it, numbered 1-5 each with the URL in them, just simply change the parcel media, and it needs to be 100% public. Is this even achievable? Can the media be changed by a total stranger? All I seem to find are group tagged itmes. Even a prim that used chat commands to talk to a prim that was land deeded, I don't know. Either way this is my script so far, but it only works upon rez, once you change it, it no longer functions.


float START_TIME = 3.0;
float RUN_LENGTH = 120.0;

default
{
state_entry()
{
if ( llParcelMediaQuery([PARCEL_MEDIA_COMMAND_TEXTURE]) == [] )
llSay(0, "Lacking permission to set/query parcel media. This object has to be owned by/deeded to the land owner.";);
llParcelMediaCommandList( [
PARCEL_MEDIA_COMMAND_URL, "http://yourURL.com/video1.mov",
PARCEL_MEDIA_COMMAND_TEXTURE, (key) llGetTexture(0) ] );
}

touch_start(integer num_detected)
{
llParcelMediaCommandList( [
PARCEL_MEDIA_COMMAND_AGENT, llDetectedKey(0),
PARCEL_MEDIA_COMMAND_TIME, START_TIME,
PARCEL_MEDIA_COMMAND_PLAY ] );
list Info = llParcelMediaQuery([PARCEL_MEDIA_COMMAND_URL, PARCEL_MEDIA_COMMAND_TEXTURE]);

llSetTimerEvent(RUN_LENGTH);
}

timer()
{
llParcelMediaCommandList( [ PARCEL_MEDIA_COMMAND_STOP ] );
llSetTimerEvent(0.0);
}
}
Jodie Suisei
Lost In LSL Code
Join date: 6 Oct 2006
Posts: 66
09-26-2008 09:00
Is it possible to get a TV totally public even if it is group deeded the group deed only means share it with group so the media can actually be loaded and play onto each avatars clients.

if you do own land but its not group deeded you can still play movie files or media URL's without a problem without having to group deed the object.

Most Tv systems out there are scripted to allow any one to touch reguardless of what group the system is deeded to im in the process of writing several modules for inworld Basic TV's but no where near finished yet hehe :p

Some tv makers within SL only have there system set to group touchs i guess because they havent either figured out the way to make them allow any ones clicking when they are group deeded or can be bothered to add just a few lines extra to allow any one outside of the group clicks.

Most TV's in SL use Dialog menus and a second object that you can deed for group land as you pointed out i will not name other TV makers however since im in the process of making my own but there is quite a few that use public allow every one to click.

as for your script can you define once you change it and it no longer works ? im a little puzzled on what exactly the problem your having with the script is.
_____________________
Inspired Style - Co-Owner

http://slurl.com/secondlife/Pintano/29/136/30

http://inspiredstyle.blogspot.com/ (Under Development)

Learner Scripter,
Fiddly Prim Builder,
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
09-26-2008 19:13
It was that the script didn't actually change on touch, it was on rez. Which is easy to fix.