Don't click here unless you want to be banned.
LSL Wiki :
llSetParcelMusicURL
HomePage
::
PageIndex
::
RecentChanges
::
RecentlyCommented
::
UserSettings
:: You are crawling22.us.archive.org
**##llSetParcelMusicURL([[string]] url)##** Sets the streaming [[sound audio]] URL for the [[parcel]] the [[script scripted]] [[object]] is on (the object must be owned by the [[owner]] of the parcel, if the parcel is group owned the object must be [[GroupObjects owned by that group]]). This means, for those who do have a [[server webserver]] where they can just upload simple files, but not run streaming servers, you can now have multiple [[MP3]]/[[Vorbis Ogg Vorbis]] files there and a script in-[[world]] that just switches the URL to point to each file in succession (it'll have to know how long each song is though). Note: This function [[scriptdelay delays]] the script for 2 seconds. %%(lsl) //This simple script will listen for the owner to say radio: URL //it will tune to the station specified by the radio: command. default { state_entry() { llListen(0,"",llGetOwner(),""); } listen(integer channel,string name,key id,string msg) { string lmsg=llToLower(msg); if("radio: "==llGetSubString(lmsg,0,6)) { llSetParcelMusicURL(llGetSubString(msg,7,-1)); } } } %% **Q:** ''So the [[simulator sim]] relays the audio stream to the SL client, right?'' **A:** ''No, that wouldn't make much sense. Instead, the sim just tells the client the URL of the parcel and then each client connects to the audio streaming server individually.'' **Q:** ''But doesn't that mean the more people dwell on a parcel, the more bandwith the streaming server needs?'' **A:** ''Yes, that is correct.'' **Q:** ''So I can't stream live audio from my DSL connection?'' **A:** ''Not with more than one or two listeners (depending on [[bit]]rate and your upstream bandwidth).'' **Q:** ''How do I stream live audio to many listeners then?'' **A:** ''You'd need a server that has reasonable upstream bandwith and is running an audio streaming service such as [[http://www.icecast.org/ Icecast]]. Then you just use a plugin (like [[http://www.oddsock.org/tools/ Oddcast]]) for your audio player to send your audio stream (once) to the server, which relays it to all the listeners.'' **A:** ''[[http://www.shoutcast.net/ Shoutcast]] is also possible, and has its own plugin.'' - [[IceBrodie Ice]] **Q:** ''Wow, so I actually have to know how to set up all that stuff?'' **A:** ''No, not necessarily, there are also commercial hosts that do this for you (for a fee). Note that any that require the listener to log in (such as ""Live365"") will not work with SL.'' **A:** ''I've seen these work, but you have to get the URL from an external MP3 player, and I'd recomend not logging in for this (unless you have a specific account allowing multiple logins). Also I do recomend getting the URL from within the player's playlist anyway as the SL client does not understand .pls (playlist) files to my knowledge.'' - [[IceBrodie Ice]] **Q:** ''Which ones do work then?'' **A:** ''""Live365"" premium has multiple account logins (shhh) because you pay the fees, additionally any other stream will have general music, if you like a stream, check the properties'' - Note that there is currently no way to get the current music URL with a script ([[llParcelMediaQuery]] can only be used to return the URL of a [[video]] stream). - To get the stream name or current song information, you could probably do something with [[llHTTPRequest]], [[XMLRPC XML-RPC]], or [[email e-mail events]]. - If you want to play [[video]], use ##[[llParcelMediaCommandList]]##. - If you want to play MP3 files and they don't work, make sure that the ID3 tags do not have embedded images. ---- [[Functions]] | [[Sound]] | [[Land]]
Valid XHTML 1.0 Transitional
::
Valid CSS
:: Powered by
WakkaWiki 0.1.2