# llParcelMediaCommandList

*LSL function*

```lsl
void llParcelMediaCommandList(list commandList);
```

- `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.

```lsl title="How to use" frame="terminal"
llParcelMediaCommandList([]);
```

## Specification

Constant group [ParcelMediaCommand](/constants/groups/ParcelMediaCommand/):

```lsl
PARCEL_MEDIA_COMMAND_AGENT = 7
PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9
PARCEL_MEDIA_COMMAND_DESC = 12
PARCEL_MEDIA_COMMAND_LOOP = 3
PARCEL_MEDIA_COMMAND_LOOP_SET = 13
PARCEL_MEDIA_COMMAND_PAUSE = 1
PARCEL_MEDIA_COMMAND_PLAY = 2
PARCEL_MEDIA_COMMAND_SIZE, integer x, integer y
PARCEL_MEDIA_COMMAND_STOP = 0
PARCEL_MEDIA_COMMAND_TEXTURE = 4
PARCEL_MEDIA_COMMAND_TIME = 6
PARCEL_MEDIA_COMMAND_TYPE = 10
PARCEL_MEDIA_COMMAND_UNLOAD = 8
PARCEL_MEDIA_COMMAND_URL = 5
```

## 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_URL](/constants/PARCEL_MEDIA_COMMAND_URL/) value is greater than 254 characters, the command will silently fail.
- If using [PARCEL_MEDIA_COMMAND_URL](/constants/PARCEL_MEDIA_COMMAND_URL/) and [PARCEL_MEDIA_COMMAND_AGENT](/constants/PARCEL_MEDIA_COMMAND_AGENT/), make sure the *Media URL* in the *About Land ...* dialog is unset. See [SVC-4478](https://jira.secondlife.com/browse/SVC-4478).

## Examples

<details open>
<summary>Example 1</summary>

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

</details>

## Known issues

- [SVC-1764](https://jira.secondlife.com/browse/SVC-1764): Setting parcel media for a single agent was broken with new media functionality in release candidates of 1.19.1
- [SVC-4478](https://jira.secondlife.com/browse/SVC-4478): Using [PARCEL_MEDIA_COMMAND_AGENT](/constants/PARCEL_MEDIA_COMMAND_AGENT/) with [llParcelMediaCommandList](/functions/llParcelMediaCommandList/)() when parcel's [media URL](/constants/PARCEL_MEDIA_COMMAND_URL/) is set causes previous video [replay](/constants/PARCEL_MEDIA_COMMAND_PLAY/)

## See also

### Functions

- [llParcelMediaQuery](/functions/llParcelMediaQuery/)
- [llSetTextureAnim](/functions/llSetTextureAnim/)
- [llSetTexture](/functions/llSetTexture/)

---

*Source: [LlParcelMediaCommandList](https://wiki.secondlife.com/wiki/LlParcelMediaCommandList) on the Second Life Wiki. Content from the Second Life Wiki articles LlParcelMediaCommandList (revision 1194425, 2015-01-22) and Template:LSL Constants/Parcel Media (revision 935833, 2010-06-05), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llParcelMediaCommandList/
