|
Melorie Boxen
Registered User
Join date: 5 Mar 2009
Posts: 14
|
03-05-2009 20:47
hi everybody,
i just started to use second life and currently try to display a web side on a prim. so i did all the thinks shown in the tutorial and it works pretty nice using second lifes play and stop buttons. but since i want to make my own media wall i would like to use llParcelMediaCommands to start and stop. unfortunately - using this commands nothing is happening. it seems the llParcelMediaCommands just don't work. so, i was wondering if anyone knows whether i have to change any options or something.
i attached following script to my prim (with the media texture) but it just displays the text Playing on texture for Agent Melorie Boxen". i am not the land owner but my group has rights to script. could that be the problem?
float START_TIME = 30.0; float RUN_LENGTH = 10.0;
default { state_entry() { llParcelMediaCommandList( [ PARCEL_MEDIA_COMMAND_URL, "http://enter_your.url/here", 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]); llSay(0, "Playing '" + llList2String(Info, 0) + "' on texture '" + (string)llList2Key(Info, 1) + "' for agent " + llDetectedName(0)); llSetTimerEvent(RUN_LENGTH); }
timer() { llParcelMediaCommandList( [ PARCEL_MEDIA_COMMAND_STOP ] ); llSetTimerEvent(0.0); } }
thank you very much!
|
|
Strayn Janus
Registered User
Join date: 2 May 2007
Posts: 3
|
03-05-2009 23:48
From: Melorie Boxen i attached following script to my prim (with the media texture) but it just displays the text Playing on texture for Agent Melorie Boxen". i am not the land owner but my group has rights to script. could that be the problem?
Very likely. The llParcelMediaCommandList() call will fail unless the ownership of the prim containing it follows certain rules. Land owned by group: The prim must be deeded to that group Land owned by an individual: The prim must by owned by that avatar Best of luck getting it working.
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
03-06-2009 03:58
Well, yeah, the land owner, whether it be group or individual, must own the scripted object which is to us llParcelMediaCommandList..that's a must. Also, you talk about using llParcelMediaCommandList and showing web on a prim in the same sentence - they don't work together. In order to show web on a prim, your land's media box must be set to show web content, and to show media, it must be set to video content. Check out http://www.lslwiki.net/lslwiki/wakka.php?wakka=llParcelMediaCommandList&show_comments=0 and http://wiki.secondlife.com/wiki/LlParcelMediaCommandList for information on using/setting the Parcel Media.
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
03-06-2009 05:26
The parcel media command list function can actually alter the media type, whether you want web, video, image, or even audio (because web is a type of media too). Anything that can be altered through the media tab of the "About Land" window can also be altered through the LSL function... assuming you have all the necessary permissions.
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
03-06-2009 22:35
yeah, that's actually what I was saying lol
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
03-07-2009 14:49
Ah ok, cool. I thought you were saying web content only works if you set it manually in the About Land window. I'll try to read more carefully next time! 
|
|
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
|
03-07-2009 23:20
no, although it would have been nice if the wiki had said something about it when they implemented the new media setup..I had to figure out for myself how to set that "video/*" LOL
|