Difference between revisions of "LlParcelMediaCommandList"

From Second Life Wiki
Jump to navigation Jump to search
Line 22: Line 22:
|p11_type|p11_name|p11_desc
|p11_type|p11_name|p11_desc
|p12_type|p12_name|p12_desc
|p12_type|p12_name|p12_desc
|constants
|constants={{{!}}{{Prettytable}}
!Constant
!Value
!Description
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_STOP}}
{{!}}0
{{!}}Stop the media stream and go back to the first frame.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_PAUSE}}
{{!}}1
{{!}}Pause the media stream (stop playing but stay on current frame).
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_PLAY}}
{{!}}2
{{!}}Start the media stream playing from the current frame and stop when the end is reached.
{{!}}-
{{!}}{{LSLG|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.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_TEXTURE}}
{{!}}4
{{!}}Use this to get or set the parcel's media texture.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_URL}}
{{!}}5
{{!}}Used to get or set the parcel's media url.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_TIME}}
{{!}}6
{{!}}Move a media stream to a specific time.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_AGENT}}
{{!}}7
{{!}}Applies the media command to the specified agent only.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_UNLOAD}}
{{!}}8
{{!}}Completely unloads the movie and restores the original texture.
{{!}}-
{{!}}{{LSLG|PARCEL_MEDIA_COMMAND_AUTO_ALIGN}}
{{!}}9
{{!}}Sets the parcel option 'Auto scale content'.
{{!}}}
|spec
|spec
|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.
Line 39: Line 83:
*{{LSLG|llSetTextureAnim}}
*{{LSLG|llSetTextureAnim}}
*{{LSLG|llSetTexture}}
*{{LSLG|llSetTexture}}
|also_tests
|also_tests
|also_articles
|also_articles
|also_footer
|also_footer
|notes = Useful constants
|notes
 
*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 = 4
:Use this to get or set the parcel's media texture.
 
*PARCEL_MEDIA_COMMAND_URL = 5
:Used to get or set the parcel's media url.
 
*PARCEL_MEDIA_COMMAND_TIME = 6
:Move a media stream to a specific time.
 
*PARCEL_MEDIA_COMMAND_AGENT = 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'.
|mode
|mode
|deprecated
|deprecated

Revision as of 17:49, 8 February 2007

Summary

Function: llParcelMediaCommandList( list commandList );

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 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 4 Use this to get or set the parcel's media texture.
PARCEL_MEDIA_COMMAND_URL 5 Used to get or set the parcel's media url.
PARCEL_MEDIA_COMMAND_TIME 6 Move a media stream to a specific time.
PARCEL_MEDIA_COMMAND_AGENT 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 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.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llParcelMediaCommandList( list commandList );