Difference between revisions of "LlParcelMediaQuery"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (added example=, & to parcel category) |
m (lsl code tagging) |
||
Line 10: | Line 10: | ||
|constants={{LSL Constants/Parcel Media|query|Return}} | |constants={{LSL Constants/Parcel Media|query|Return}} | ||
|examples= | |examples= | ||
< | <lsl>//-- quick function to tell you the URL of the Media the Parcel is set for | ||
default{ | default{ | ||
touch_start( integer vIntNull ){ //-- named null because we're ignoring it | 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 ) ); | llSay( 0, "The Media URL is\n" + (string)llParcelMediaQuery( (list)PARCEL_MEDIA_COMMAND_URL ) ); | ||
} | } | ||
}</ | }</lsl> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llParcelMediaCommandList]]|}} | |also_functions={{LSL DefineRow||[[llParcelMediaCommandList]]|}} |
Revision as of 13:44, 1 April 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: list llParcelMediaQuery( list query );299 | Function ID |
2.0 | Forced Delay |
10.0 | Energy |
Returns a list containing results of query. The results are in the same order as the request.
• list | query |
Constant | Return | Description | |
---|---|---|---|
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. |
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
Examples
<lsl>//-- 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 ) ); }}</lsl>
See Also
Functions
• | llParcelMediaCommandList |