Author |
Message |
Cher
Joined: 14 Aug 2004 Posts: 39 Location: Yellowknife
|
Posted: Thu Dec 30, 2004 4:44 pm Post subject: script for music spot |
|
|
I was just wondering if anyone knows of a script that can be used in a spot for playing a wav, and being able to see when it's done downloading. Right now I am just putting it in the wav section of the state, and watching the modem for it to stop working.
Also.... when the song downloads, where does it actually reside, is there a special cache that it is kept in, or is it downloaded each time?
Thanks
Cher |
|
Back to top |
|
|
lara
Joined: 04 Aug 2004 Posts: 79
|
Posted: Thu Dec 30, 2004 5:39 pm Post subject: Mini Jukebox |
|
|
Lisa has written a lil script for playing a small number of wav's, it is local and the User can see the sound download. All the music is handled in the Disclaimer and the Users download this songlist in to a cookie when they land at the Disclaimer. The play song script can be put in any room where you want the music played, but only the script in the Disclaimer needs to be maintained. I know all this because Lisa taught me by having me type the script as part of my script training.
I hope this may be of use to you, please come to WM for more help and information. |
|
Back to top |
|
|
Cher
Joined: 14 Aug 2004 Posts: 39 Location: Yellowknife
|
Posted: Thu Dec 30, 2004 5:50 pm Post subject: Music |
|
|
Thank you lara.
Cher |
|
Back to top |
|
|
Bri
Joined: 06 Aug 2004 Posts: 237 Location: Palm Springs, CA
|
Posted: Fri Dec 31, 2004 1:50 am Post subject: Try |
|
|
This should work
_________________________________________
import manor
def startTune(dummy):
....manor.playSound("http://you.yourserver.com/song.wav")
def mnr_enter(userID):
....if userID == manor.myID():
........manor.fetchSound("http://you.yourserver.com/song.wav",startTune,0)
_________________________________________
check white space..got lost in Forum Post so used ..... _________________ RL..now with 100% less lag! |
|
Back to top |
|
|
Scotsman Site Admin
Joined: 03 Aug 2004 Posts: 705 Location: MadWolf Software
|
Posted: Fri Dec 31, 2004 12:20 pm Post subject: |
|
|
What Bri said
As to where the sound is stored, it goes into the cache like any other media. When FetchSound is called it checks the cache before initiating a download, if it finds it there your completion routine is called imediatly with the cached resource.
Also remember if this is the first time in a session you have requested a resource, Manor does check the server for a newer version even if it is cached. This can cause a few seconds delay before your completion routine is called the first time. After it has done the update check once in a session it will always pull from the cache until the client is restarted or the user clears their cache. |
|
Back to top |
|
|
mimee
Joined: 10 Oct 2004 Posts: 81 Location: mendota, illinois
|
Posted: Sat Jan 01, 2005 9:15 am Post subject: wavs |
|
|
i have used both methods for wavs....... have the small script in our disclaimer .......it is easy to maintain..... only requires a script in each room ...... the user if given the choice from a list of what to download.....and the script Bri put in here works great too.... i find them both quite effective , depending on how many wavs you want available to your users
mimee¤§§¤: |
|
Back to top |
|
|
|