OsSetParcelMediaURL

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (PUBLIC_CHANNEL)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| width="100%" style="border: thin solid black"
+
{{osslfunc
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|threat_level=VeryLow
|- valign="top"
+
|permissions=${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
|'''Threat Level''' || <Threat Level goes here>
+
|delay=0
 
+
|function_syntax= osSetParcelMediaURL(string url)
|- valign="top"
+
|ossl_example=<source lang = "lsl">
|'''Function Syntax''' || <source lang="lsl">
+
// ----------------------------------------------------------------
osSetParcelMediaURL(string url);
+
// Example / Sample Script to show function use.
 +
//
 +
// Script Title:    osSetParcelMediaURL.lsl
 +
// Script Author:
 +
// Threat Level:    VeryLow
 +
// Script Source:  SUPPLEMENTAL http://opensimulator.org/wiki/osSetParcelMediaURL
 +
//
 +
// Notes: See Script Source reference for more detailed information
 +
// This sample is full opensource and available to use as you see fit and desire.
 +
// Threat Levels only apply to OSSL & AA Functions
 +
// See http://opensimulator.org/wiki/Threat_level
 +
// ================================================================
 +
// C# Source Line:      public void osSetParcelMediaURL(string url)
 +
// Inworld Script Line: osSetParcelMediaURL(string url);
 +
//
 +
// Example of osSetParcelMediaURL
 +
//
 +
string sURL = "http://www.archive.org/download/CncdVsFairlightCeasefire/ceasefire_all_fall_down.stream.mp4"; // The URL we are setting to the parcel.
 +
//
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(PUBLIC_CHANNEL, "Touch to see how osSetParcelMediaURL works");
 +
    }
 +
    touch_start(integer num)
 +
    {
 +
        llSay(PUBLIC_CHANNEL, "Media URL being set to : " + sURL);
 +
        osSetParcelMediaURL(sURL);
 +
    }
 +
}
 
</source>
 
</source>
|- valign="top"
+
|description= Sets the Media URL for the parcel the scripted object is in.
|'''Example(s)||
+
|
 
+
}}
|}
+
 
+
[[Category:OSSL Functions]]
+
[[Category:OSSL_functions_without_example]]
+
[[Category:OSSL functions without threat level]]
+

Latest revision as of 23:00, 7 September 2020

osSetParcelMediaURL(string url)
Sets the Media URL for the parcel the scripted object is in.
Threat Level VeryLow
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osSetParcelMediaURL.lsl
// Script Author:
// Threat Level:    VeryLow
// Script Source:   SUPPLEMENTAL http://opensimulator.org/wiki/osSetParcelMediaURL
//
// Notes: See Script Source reference for more detailed information
// This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
// See http://opensimulator.org/wiki/Threat_level
// ================================================================
// C# Source Line:      public void osSetParcelMediaURL(string url)
// Inworld Script Line: osSetParcelMediaURL(string url);
//
// Example of osSetParcelMediaURL
//
string sURL = "http://www.archive.org/download/CncdVsFairlightCeasefire/ceasefire_all_fall_down.stream.mp4"; // The URL we are setting to the parcel.
//
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see how osSetParcelMediaURL works");
    }
    touch_start(integer num)
    {
        llSay(PUBLIC_CHANNEL, "Media URL being set to : " + sURL);
        osSetParcelMediaURL(sURL);
    }
}
Personal tools
General
About This Wiki