Difference between revisions of "LlParcelMediaQuery"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func=llParcelMediaQuery
|func_id=299|func_sleep=2.0|func_energy=10.0
|func_id=299
|func=llParcelMediaQuery|sort=ParcelMediaQuery
|func_sleep=2.0
|return_type=list|p1_type=list|p1_name=query
|func_energy=10.0
|sort=ParcelMediaQuery
|func_desc=Sends a list of queries, returns a list of results.
|func_footnote
|func_footnote
|return_type=list
|func_desc
|return_text
|return_text=containing results of '''query'''. The results are in the same order as the request.
|p1_type|p1_name|p1_desc
|p2_type|p2_name|p2_desc
|p3_type|p3_name|p3_desc
|p4_type|p4_name|p4_desc
|p5_type|p5_name|p5_desc
|p6_type|p6_name|p6_desc
|p7_type|p7_name|p7_desc
|p8_type|p8_name|p8_desc
|p9_type|p9_name|p9_desc
|p10_type|p10_name|p10_desc
|p11_type|p11_name|p11_desc
|p12_type|p12_name|p12_desc
|constants
|spec
|spec
|caveats
|caveats= * This script's object must be owned by the landowner or the function will silently fail.
|examples
* 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
|helpers
|also_header
|also_functions={{LSL DefineRow||[[llParcelMediaCommandList]]|}}
|also_functions
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles
|also_footer
|notes
|notes
|mode
|cat1=Media
|deprecated
|cat2=Video
|location
|cat3=Parcel
|inventory
|permission
|negative_index
|cat1=Stub
|cat2
|cat3
|cat4
|cat4
|cat5
|cat6
}}
}}

Latest revision as of 14:08, 22 January 2015

Summary

Function: list llParcelMediaQuery( list query );

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.
All Issues ~ Search JIRA for related Bugs

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

Search JIRA for related Issues

Signature

function list llParcelMediaQuery( list query );