Hi,
i try write function for dynamic playlist
def dynamic(process)
x = string.ref("0")
get = fst(x)
set = snd(x)
files = get_process_lines(process)
length = list.length(files)
def next()
state = int_of_string(get())
if state < length then
set(string_of(state + 1))
request.create(audio=true,list.nth(files,state))
else
set(string_of(1))
log("playlist end! request new")
files = get_process_lines(process)
length = list.length(files)
request.create(audio=true,list.nth(files,0))
end
end
request.dynamic(next)
end
and get
radio = dynamic("/bin/playlist.sh")
if playlist is end, in log write "playlist end! request new" but
playing old requested playlist, why?
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users