Skip to content

llParcelMediaCommandList

function
Function syntax
llParcelMediaCommandList(
  1. list commandList// A list containing integer PARCEL_MEDIA_COMMAND_* flags and their corresponding parameters
);
Delay
2s
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
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.

  1. Viewer 746d768339: newview/llviewerparcelmedia.cpp:338-342; newview/llviewerparcelmedia.cpp:378-386 ↩

  2. Viewer 746d768339: newview/llviewerparcelmedia.cpp:357-375 ↩

  3. Viewer 746d768339: newview/llviewerparcelmedia.cpp:396-447 ↩