Skip to content
lsl.devlsl.devLSL Dev

ParcelMediaCommand

Constants in the ParcelMediaCommand enum.

All constant groups

At a glance, from the LSL definitions
// 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

ConstantTypeValueDescription
PARCEL_MEDIA_COMMAND_PLAYinteger2Command used with llParcelMediaCommandList to play the media stream from its current frame, stopping when the end is reached.
PARCEL_MEDIA_COMMAND_LOOPinteger3Command 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_PAUSEinteger1Command used with llParcelMediaCommandList to pause the media stream on the current frame.
PARCEL_MEDIA_COMMAND_STOPinteger0Command used with llParcelMediaCommandList to stop the media stream and rewind it to the first frame.
PARCEL_MEDIA_COMMAND_TIMEinteger6Command used with llParcelMediaCommandList to jump to a specific timestamp in the media stream, specified in floating-point seconds.
PARCEL_MEDIA_COMMAND_UNLOADinteger8Command used with llParcelMediaCommandList to completely unload the media and restore the face's original texture.

Media settings

ConstantTypeValueDescription
PARCEL_MEDIA_COMMAND_URLinteger5Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel's media URL.
PARCEL_MEDIA_COMMAND_TEXTUREinteger4Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel's media texture.
PARCEL_MEDIA_COMMAND_TYPEinteger10Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media MIME type (e.g., 'text/html').
PARCEL_MEDIA_COMMAND_SIZEinteger11Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media pixel resolution.
PARCEL_MEDIA_COMMAND_DESCinteger12Command used with llParcelMediaCommandList or llParcelMediaQuery to get or set the parcel media description.
PARCEL_MEDIA_COMMAND_LOOP_SETinteger13Command 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_ALIGNinteger9Command used with llParcelMediaCommandList to toggle or set the parcel media option 'Auto scale content'.

One agent only

ConstantTypeValueDescription
PARCEL_MEDIA_COMMAND_AGENTinteger7Command used with llParcelMediaCommandList to apply the specified media command to the designated agent only.

Used by