Skip to content
lsl.devlsl.devLSL Dev

llParcelMediaCommandList

function
Function syntax
llParcelMediaCommandList(
  1. list commandList// A list containing integer PARCEL_MEDIA_COMMAND_* flags and their corresponding parameters.
);
Delay
2 s
Energy
10

Controls the playback of movies and other multimedia resources on a parcel or for an agent, using the PARCEL_MEDIA_COMMAND_* settings specified in commandList.

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

How to use
llParcelMediaCommandList([]);
From the LSL definitions: ParcelMediaCommand (rule, then its arguments)
// PlaybackPARCEL_MEDIA_COMMAND_PLAY  // from the current frame; stops at the endPARCEL_MEDIA_COMMAND_LOOP  // from the current frame; loops at the endPARCEL_MEDIA_COMMAND_PAUSEPARCEL_MEDIA_COMMAND_STOP  // back to the first framePARCEL_MEDIA_COMMAND_TIME, float time  // secondsPARCEL_MEDIA_COMMAND_UNLOAD  // restores the original texture// Media settingsPARCEL_MEDIA_COMMAND_URL, string urlPARCEL_MEDIA_COMMAND_TEXTURE, key uuid  // the texture the media replacesPARCEL_MEDIA_COMMAND_TYPE, string mime_type  // e.g. "text/html"PARCEL_MEDIA_COMMAND_SIZE, integer x, integer y  // pixelsPARCEL_MEDIA_COMMAND_DESC, string descPARCEL_MEDIA_COMMAND_LOOP_SET, float loop  // loop durationPARCEL_MEDIA_COMMAND_AUTO_ALIGN, integer boolean  // parcel option "Auto scale content"// One agent onlyPARCEL_MEDIA_COMMAND_AGENT, key uuid  // the commands apply to this agent only
  • This script’s object must be owned by the landowner or the function will silently fail.
  • If the script’s object is over group owned land, then the object must be deeded to that group.
  • If the PARCEL_MEDIA_COMMAND_URL value is greater than 254 characters, the command will silently fail.
  • If using PARCEL_MEDIA_COMMAND_URL and PARCEL_MEDIA_COMMAND_AGENT, make sure the Media URL in the About Land … dialog is unset. See SVC-4478.
Example 1
key myTexture = llGetTexture(0);
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.