LlParcelMediaCommandList
From Second Life Wiki
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: llParcelMediaCommandList( list commandList );| 298 | Function ID |
| 2.0 | Delay |
| 10.0 | Energy |
Controls the playback of movies and other multimedia resources on a parcel or for an agent.
| • list | commandList | – | A list of integer flags and parameters |
| Constant | Parameter | Description | |
|---|---|---|---|
| 0 | PARCEL_MEDIA_COMMAND_STOP | Stop the media stream and go back to the first frame. | |
| 1 | PARCEL_MEDIA_COMMAND_PAUSE | Pause the media stream (stop playing but stay on current frame). | |
| 2 | PARCEL_MEDIA_COMMAND_PLAY | Start the media stream playing from the current frame and stop when the end is reached. | |
| 3 | PARCEL_MEDIA_COMMAND_LOOP | Start the media stream playing from the current frame. When the end is reached, loop to the beginning and continue. | |
| 4 | PARCEL_MEDIA_COMMAND_TEXTURE | key uuid | Used to get or set the parcel's media texture. |
| 5 | PARCEL_MEDIA_COMMAND_URL | string url | Used to get or set the parcel's media url. |
| 6 | PARCEL_MEDIA_COMMAND_TIME | float time | Move a media stream to a specific time. |
| 7 | PARCEL_MEDIA_COMMAND_AGENT | key uuid | Applies the media command to the specified agent only. |
| 8 | PARCEL_MEDIA_COMMAND_UNLOAD | Used to unload the movie and restores the original texture. | |
| 9 | PARCEL_MEDIA_COMMAND_AUTO_ALIGN | integer boolean | Used to set the parcel option 'Auto scale content'. |
| 10 | PARCEL_MEDIA_COMMAND_TYPE | string mime_type | Used to get or set the parcel media MIME type (e.g. "text/html"). (1.19.1 RC0 or later) |
| 11 | PARCEL_MEDIA_COMMAND_SIZE | integer x, integer y | Used to get or set the parcel media pixel resolution. (1.19.1 RC0 or later) |
| 12 | PARCEL_MEDIA_COMMAND_DESC | string desc | Used to get or set the parcel media description. (1.19.1 RC0 or later) |
| 13 | PARCEL_MEDIA_COMMAND_LOOP_SET | float loop | Used to get or set the parcel's media loop duration. (1.19.1 RC0 or later) |
Caveats
- This function causes the script to sleep for 2.0 seconds.
- 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 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[c].
Examples
key myTexture = llGetTexture(0); llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE,myTexture,PARCEL_MEDIA_COMMAND_PLAY]);
Deep Notes
Issues
~ Search JIRA for related Issues| | | SVC-1764 [c] | Setting parcel media for a single agent was broken with new media functionality in release candidates of 1.19.1 |
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

