llParcelMediaCommandList
function
Function syntax
llParcelMediaCommandList(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.
llParcelMediaCommandList([]);Specification
Section titled “Specification”// 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
Caveats
Section titled “Caveats”- 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_URLvalue is greater than 254 characters, the command will silently fail. - If using
PARCEL_MEDIA_COMMAND_URLandPARCEL_MEDIA_COMMAND_AGENT, make sure the Media URL in the About Land … dialog is unset. See SVC-4478.
Examples
Section titled “Examples”Example 1
key myTexture = llGetTexture(0);llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);Known issues
Section titled “Known issues”- SVC-1764: Setting parcel media for a single agent was broken with new media functionality in release candidates of 1.19.1
- SVC-4478: Using
PARCEL_MEDIA_COMMAND_AGENTwithllParcelMediaCommandList() when parcel’s media URL is set causes previous videoreplay
See also
Section titled “See also”Functions
Section titled “Functions”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.