Archive of UserLand's first discussion group, started October 5, 1998.

Re: Playlist software, etc.

Author:Nicholas Riley
Posted:8/1/2000; 3:41:36 PM
Topic:scriptingNews outline for 8/1/2000
Msg #:19365 (In response to 19358)
Prev/Next:19364 / 19366

How do we get control back when the music is finished playing?

One trivial way to do it would be to do clock.sleepFor(the length of the song you're playing). At the end of that time, put the next song on the queue. This is assuming nobody tries to stop/rewind the current song, of course. If it's possible to query the status of the MP3 player once the thread wakes up, for example how much time the song has remaining, this might make this strategy work a bit better, to avoid cutting songs off.

Of course, callbacks would be much nicer.

--Nicholas


There are responses to this message:


This page was archived on 6/13/2001; 4:55:57 PM.

© Copyright 1998-2001 UserLand Software, Inc.