hi I am throwing together a little prim to stream some web based MP3's. I want to set the time of each in a timer so it will advance to the next track, but I am not having any luck. Can someone point me in the right direction?
Thanks
These forums are CLOSED. Please visit the new forums HERE
Setting up multipal timers... |
|
Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
|
09-22-2005 19:52
hi I am throwing together a little prim to stream some web based MP3's. I want to set the time of each in a timer so it will advance to the next track, but I am not having any luck. Can someone point me in the right direction?
Thanks |
Angus Kuhr
Dwarf with a Hammer
Join date: 17 Jul 2005
Posts: 43
|
09-22-2005 21:00
Seperate states are your best friend. Every time you want a new timer, have the LAST timer go to a different state.
CODE
You can keep adding new states pretty much indefnately. But, when it comes to states, you CANNOT have a state call itself. Also, I believe that you'll need multiple scripts for multiple timers. As for mp3s, add some blank space to the beginning and end of each clip and then Time them to overlap on the dead time. It might take some twinking, but it works. _____________________
Sewage flavored.
|
Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
|
09-22-2005 21:09
Thank you! I will get right on testing this.
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
09-22-2005 22:56
Hmm, you might want to take a different approach to that, try this:
CODE
==Chris _____________________
October 3rd is the Day Against DRM (Digital Restrictions Management), learn more at http://www.defectivebydesign.org/what_is_drm
|
Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
|
09-24-2005 07:14
Hi Chris!
Yes this certainly is a much cleaner way of doing things for sure and after playing with you code I see how it is working... I think... ;0) Some things I would like to ask... If I wanted to add the song title I could do so like this: "http://myWebsite.com/song1.mp3", 3.05, "Song1.MP3", And then use a llSetText that parses the string above? looking for the 3rd part? How about a way to stop the loop? I can add a listen I guess, hate to do it for this... maybe something to edit in the header? a loop/no loop? Thanks for all your help! Syd |
Zodiakos Absolute
With a a dash of lemon.
Join date: 6 Jun 2005
Posts: 282
|
09-26-2005 12:44
How about using a dialog menu for that?
![]() |
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
09-26-2005 17:48
im lazy and would add another list named title then llSay(0,(llList2String,title,songindex));
|