Difference between revisions of "LlParcelMediaCommandList"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func = llParcelMediaCommandList
|func=llParcelMediaCommandList
|func_id=298
|func_id=298|func_sleep=2.0|func_energy=10.0
|func_sleep=2.0
|func_energy=10.0
|func_desc=Controls the playback of movies and other multimedia resources on a parcel or for an agent.
|func_desc=Controls the playback of movies and other multimedia resources on a parcel or for an agent.
|func_footnote
|func_footnote
Line 11: Line 9:
|p1_name=commandList
|p1_name=commandList
|p1_desc=A list of integer options to set as defined below.
|p1_desc=A list of integer options to set as defined below.
|p2_type|p2_name|p2_desc
|p3_type|p3_name|p3_desc
|p4_type|p4_name|p4_desc
|p5_type|p5_name|p5_desc
|p6_type|p6_name|p6_desc
|p7_type|p7_name|p7_desc
|p8_type|p8_name|p8_desc
|p9_type|p9_name|p9_desc
|p10_type|p10_name|p10_desc
|p11_type|p11_name|p11_desc
|p12_type|p12_name|p12_desc
|constants={{{!}}{{Prettytable}}
|constants={{{!}}{{Prettytable}}
!Constant
!Constant
Line 81: Line 68:
|caveats= * This script's object must be owned by the landowner or the function will silently fail.
|caveats= * This script's object must be owned by the landowner or the function will silently fail.
* If the land is over group owned land, then this object must be deeded to '''that''' group.
* If the land is over group owned land, then this object must be deeded to '''that''' group.
|examples=<lsl>
|examples=<pre>
key myTexture = llGetTexture(0);
key myTexture = llGetTexture(0);
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);
</lsl>
</pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 14:47, 21 February 2007

Summary

Function: llParcelMediaCommandList( list commandList );
2.0 Forced Delay
10.0 Energy

Controls the playback of movies and other multimedia resources on a parcel or for an agent.

• list commandList A list of integer options to set as defined below.

Constant Parameter Value Description
PARCEL_MEDIA_COMMAND_STOP 0 Stop the media stream and go back to the first frame.
PARCEL_MEDIA_COMMAND_PAUSE 1 Pause the media stream (stop playing but stay on current frame).
PARCEL_MEDIA_COMMAND_PLAY 2 Start the media stream playing from the current frame and stop when the end is reached.
PARCEL_MEDIA_COMMAND_LOOP 3 Start the media stream playing from the current frame. When the end is reached, loop to the beginning and continue.
PARCEL_MEDIA_COMMAND_TEXTURE key uuid 4 Use this to get or set the parcel's media texture.
PARCEL_MEDIA_COMMAND_URL string url 5 Used to get or set the parcel's media url.
PARCEL_MEDIA_COMMAND_TIME float time 6 Move a media stream to a specific time.
PARCEL_MEDIA_COMMAND_AGENT key uuid 7 Applies the media command to the specified agent only.
PARCEL_MEDIA_COMMAND_UNLOAD 8 Completely unloads the movie and restores the original texture.
PARCEL_MEDIA_COMMAND_AUTO_ALIGN 9 Sets the parcel option 'Auto scale content'.

Caveats

  • This function causes the script to sleep for 2.0 seconds.
  • This script's object must be owned by the landowner or the function will silently fail.
  • If the land is over group owned land, then this object must be deeded to that group.

Examples

key myTexture = llGetTexture(0);
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);

See Also

Functions

•  llParcelMediaQuery
•  llSetTextureAnim
•  llSetTexture

Deep Notes

Signature

function void llParcelMediaCommandList( list commandList );