|
Ina Centaur
IC
Join date: 31 Oct 2006
Posts: 202
|
01-20-2007 00:57
On LSLWiki, someone made the comment that you can now easily load multiple mp3's via script as long as you know how long each mp3 is. Several questions on that: I'm assuming that to do that: you have a LSL state that loads new music set by a timer event What if a song is 2 minutes, but because of lag, it actually takes a full minute to download. Do you need to account for load/lag time? How? Any advice is welcome. Thanks!
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
01-20-2007 02:41
From: Ina Centaur On LSLWiki, someone made the comment that you can now easily load multiple mp3's via script as long as you know how long each mp3 is. Several questions on that: I'm assuming that to do that: you have a LSL state that loads new music set by a timer event What if a song is 2 minutes, but because of lag, it actually takes a full minute to download. Do you need to account for load/lag time? How? Any advice is welcome. Thanks! The link is to the standard llSetParcelMusicURL call in the wikki? That is for setting a SINGLE url as music for the parcel. Each time you change it you will get lag as sl caches the buffer. You can upload 10 second sound clips to sl and then stitch them together via a script. Use the llPreloadSound function to remove, or at least reduce , the lag.
|
|
Ina Centaur
IC
Join date: 31 Oct 2006
Posts: 202
|
01-20-2007 10:46
To quote the lslwiki page "This means, for those who do have a webserver where they can just upload simple files, but not run streaming servers, you can now have multiple MP3/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)."
More details on that, please...
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
01-20-2007 13:00
load some mp3 files on your webserver
point a browser at one of the files, which will load up your mp3 player and play that one song after that song is finished point browser to another song
same thing except part of browser/player is played by SL and the land url functions
so if you have 2 songs 1 is 3:15 and the other is 4:00 you need a script that changes the land radio to song one and fall asleep for 3:15, after that time is up, your script will change the url to the second song and fall asleep for 4:00 and so on
|