OsSetParcelMusicURL: Difference between revisions
From OpenSimulator
Jump to navigationJump to search
imported>Djphil m PUBLIC_CHANNEL |
imported>Djphil mNo edit summary |
||
| Line 33: | Line 33: | ||
touch_start(integer num) | touch_start(integer num) | ||
{ | { | ||
llSay(PUBLIC_CHANNEL, " | llSay(PUBLIC_CHANNEL, "Music URL being set to : " + sURL); | ||
osSetParcelMusicURL(sURL); | osSetParcelMusicURL(sURL); | ||
} | } | ||
Latest revision as of 07:01, 8 September 2020
osSetParcelMusicURL(string url)
| |
| Sets the Music 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: osSetParcelMusicURL.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 osSetParcelMusicURL(string url)
// Inworld Script Line: osSetParcelMusicURL(string url);
//
// Example of osSetParcelMusicURL
//
string sURL = "https://archive.org/download/CncdVsFairlightCeasefire/ceasefire_all_fall_down.320k.mp3"; // The URL we are setting to the parcel.
//
default
{
state_entry()
{
llSay(PUBLIC_CHANNEL, "Touch to see how osSetParcelMusicURL works");
}
touch_start(integer num)
{
llSay(PUBLIC_CHANNEL, "Music URL being set to : " + sURL);
osSetParcelMusicURL(sURL);
}
}
| |