script for music spot

Post new topic   Reply to topic Site Building View previous topic :: View next topic  
Author Message
Cher



Joined: 14 Aug 2004
Posts: 39
Location: Yellowknife

PostPosted: Thu Dec 30, 2004 4:44 pm    Post subject: script for music spot Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
lara



Joined: 04 Aug 2004
Posts: 79

PostPosted: Thu Dec 30, 2004 5:39 pm    Post subject: Mini Jukebox Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Cher



Joined: 14 Aug 2004
Posts: 39
Location: Yellowknife

PostPosted: Thu Dec 30, 2004 5:50 pm    Post subject: Music Reply with quote

Thank you lara.

Cher
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bri



Joined: 06 Aug 2004
Posts: 237
Location: Palm Springs, CA

PostPosted: Fri Dec 31, 2004 1:50 am    Post subject: Try Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Scotsman
Site Admin


Joined: 03 Aug 2004
Posts: 705
Location: MadWolf Software

PostPosted: Fri Dec 31, 2004 12:20 pm    Post subject: Reply with quote

What Bri said Smile

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
View user's profile Send private message Visit poster's website
mimee



Joined: 10 Oct 2004
Posts: 81
Location: mendota, illinois

PostPosted: Sat Jan 01, 2005 9:15 am    Post subject: wavs Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic All times are GMT - 6 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum