Difference between revisions of "LlParcelMediaQuery"

From Second Life Wiki
Jump to navigation Jump to search
 
m (<lsl> tag to <source>)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{LSLFunctionAll|func_id=299|func_sleep=2.0|func_energy=10.0|func=llParcelMediaQuery|return_type=list|p1_type=list|p1_name=query|func_footnote=Sends a list of queries, returns a list of results.|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=299|func_sleep=2.0|func_energy=10.0
|func=llParcelMediaQuery|sort=ParcelMediaQuery
|return_type=list|p1_type=list|p1_name=query
|func_footnote
|func_desc
|return_text=containing results of '''query'''. The results are in the same order as the request.
|spec
|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.
|constants={{LSL Constants/Parcel Media|query|Return|b=*}}
|examples=
<source lang="lsl2">//-- 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 ) );
  }
}</source>
|helpers
|also_functions={{LSL DefineRow||[[llParcelMediaCommandList]]|}}
|also_tests
|also_events
|also_articles
|notes
|cat1=Media
|cat2=Video
|cat3=Parcel
|cat4
}}

Latest revision as of 13:08, 22 January 2015

Summary

Function: list llParcelMediaQuery( list query );
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

  • 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.

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

•  llParcelMediaCommandList

Deep Notes

Signature

function list llParcelMediaQuery( list query );