Skip to content
lsl.devlsl.devLSL Dev

LlParcelMediaQuery

Looking for the current API? Open the llParcelMediaQuery reference →

Return value notes

Returns a list containing results of query. The results are in the same order as the request.

Specification

Constant Return Description
4PARCEL_MEDIA_COMMAND_TEXTUREkey uuidUsed to get or set the parcel's media texture.
5PARCEL_MEDIA_COMMAND_URLstring urlUsed to get or set the parcel's media url.
10PARCEL_MEDIA_COMMAND_TYPEstring mime_typeUsed to get or set the parcel media MIME type (e.g. "text/html"). (1.19.1 RC0 or later)
11PARCEL_MEDIA_COMMAND_SIZEinteger x, integer yUsed to get or set the parcel media pixel resolution. (1.19.1 RC0 or later)
12PARCEL_MEDIA_COMMAND_DESCstring descUsed to get or set the parcel media description. (1.19.1 RC0 or later)
13PARCEL_MEDIA_COMMAND_LOOP_SETfloat loopUsed to get or set the parcel's media loop duration. (1.19.1 RC0 or later)

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.

Examples

//-- quick function to tell you the URL of the Media the Parcel is set for
default{
  touch_start( integer vIntNull ){ //-- named null because we're ignoring it
    llSay( 0, "The Media URL is\n" + (string)llParcelMediaQuery( (list)PARCEL_MEDIA_COMMAND_URL ) );
  }
}

See also: 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.