llGetPrimMediaParams
function
Function syntax
list llGetPrimMediaParams(integer face,// Face number (side) of the prim. Values: Faceslist params// A list of PRIM_MEDIA_* property constants to retrieve values for.
);- Returns
list- Delay
- 1 s
- Energy
- 10
Get the media params for a particular face on an object, given the desired list of names.
Returns an empty list if no media exists on the face.
Returns a list of values in the order requested.
list result = llGetPrimMediaParams(0, []);Specification
Section titled “Specification”// AddressPRIM_MEDIA_CURRENT_URL → string current_url // at most 1024 characters; setting it navigatesPRIM_MEDIA_HOME_URL → string home_url // at most 1024 characters// PlaybackPRIM_MEDIA_AUTO_PLAY → integer boolean // plays when a resident can see itPRIM_MEDIA_AUTO_LOOP → integer booleanPRIM_MEDIA_AUTO_SCALE → integer boolean // media fills the facePRIM_MEDIA_AUTO_ZOOM → integer boolean // a click zooms and focusesPRIM_MEDIA_FIRST_CLICK_INTERACT → integer boolean // TRUE passes the first click to the page// SizePRIM_MEDIA_WIDTH_PIXELS → integer width // 0 to 2048PRIM_MEDIA_HEIGHT_PIXELS → integer height // 0 to 2048// Controls and accessPRIM_MEDIA_CONTROLS → integer control // PRIM_MEDIA_CONTROLS_STANDARD or _MINIPRIM_MEDIA_PERMS_INTERACT → integer perms // PRIM_MEDIA_PERM_*: who can interactPRIM_MEDIA_PERMS_CONTROL → integer perms // PRIM_MEDIA_PERM_*: who sees the control barPRIM_MEDIA_WHITELIST_ENABLE → integer boolean // navigation limited to the whitelistPRIM_MEDIA_WHITELIST → string CSV // escaped URLs; up to 64 or 1024 charactersPRIM_MEDIA_ALT_IMAGE_ENABLE → integer boolean // not implemented
Helper functions
Section titled “Helper functions”list GetPrimMediaParams(integer face, list input){//Returns a list that can be fed to llSetLinkMedia or llSetPrimMediaParams list output; integer c = ~llGetListLength(input); while((c = - ~c)) { list flag = llList2List(input, c, c); output += flag + llGetLinkMedia(LINK_THIS, face, flag); } if(output == input) return []; return output;}History
Section titled “History”- SVN:2816 r134947 Trunk
- SVC-4939
Known issues
Section titled “Known issues”From the issue templates included by the wiki article:
- SVC-4939 (bug): [http://svn.secondlife.com/trac/linden/changeset/2816 SVN Changeset 2816 in Trunk] is immature
See also
Section titled “See also”Functions
Section titled “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.