ParcelMediaCommand
Constants in the ParcelMediaCommand enum.
// 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
Constants
Playback
| Constant | Type | Value | Description |
|---|---|---|---|
PARCEL_MEDIA_COMMAND_PLAY | integer | 2 | Command used with llParcelMediaCommandList to play the media stream from its current frame, stopping when the end is reached. |
PARCEL_MEDIA_COMMAND_LOOP | integer | 3 | Command used with llParcelMediaCommandList to start the media stream playing from the current frame and have it loop back to the beginning when it reaches the end. |
PARCEL_MEDIA_COMMAND_PAUSE | integer | 1 | Command used with llParcelMediaCommandList to pause the media stream on the current frame. |
PARCEL_MEDIA_COMMAND_STOP | integer | 0 | Command used with llParcelMediaCommandList to stop the media stream and rewind it to the first frame. |
PARCEL_MEDIA_COMMAND_TIME | integer | 6 | Command used with llParcelMediaCommandList to jump to a specific timestamp in the media stream, specified in floating-point seconds. |
PARCEL_MEDIA_COMMAND_UNLOAD | integer | 8 | Command used with llParcelMediaCommandList to completely unload the media and restore the face's original texture. |
Media settings
| Constant | Type | Value | Description |
|---|---|---|---|
PARCEL_MEDIA_COMMAND_URL | integer | 5 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel's media URL. |
PARCEL_MEDIA_COMMAND_TEXTURE | integer | 4 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel's media texture. |
PARCEL_MEDIA_COMMAND_TYPE | integer | 10 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media MIME type (e.g., 'text/html'). |
PARCEL_MEDIA_COMMAND_SIZE | integer | 11 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media pixel resolution. |
PARCEL_MEDIA_COMMAND_DESC | integer | 12 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media description. |
PARCEL_MEDIA_COMMAND_LOOP_SET | integer | 13 | Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel's media looping variable or loop duration (which may have functionality limitations; see VWR-19712). |
PARCEL_MEDIA_COMMAND_AUTO_ALIGN | integer | 9 | Command used with llParcelMediaCommandList to toggle or set the parcel media option 'Auto scale content'. |
One agent only
| Constant | Type | Value | Description |
|---|---|---|---|
PARCEL_MEDIA_COMMAND_AGENT | integer | 7 | Command used with llParcelMediaCommandList to apply the specified media command to the designated agent only. |
Used by
llParcelMediaCommandListfunctionControls the playback of movies and other multimedia resources on a parcel or for an agent, using the PARCEL_MEDIA_COMMAND_* settings specified in commandList.