Le Friday 07 November 2008 10:56:55 Fred P, vous avez écrit :
> Bonjour,
Salut !
> once = playlist.once("path/to/the/file")
> normal =playlist("path/to/the/otherfile")
> switch([ ({6h05-15h05}, normal),({17h30-21h05}, once),({0h30-4h05}, normal)
> ])
>
> refering to the documentation , you wrote :
> Will read directory or playlist, play all files and stop
> Is it Liquidsoap really stopping ??
> or switch automatic to the next "normal" source even if it's earlier than
> scheduled time ? (that's what I need)
Of course liquidsoap won't stop, only the source will become unavailable, so
that's what you desire !
> I've seen :
> on_done ( ()->unit – defaults to {()} ): Function to execute when the
> playlist is finished but how to use it ?
Well, this allows you to register a function that will be executed when the
playlist is finished. For instance:
def blip() =
log("playlist finished")
end
s = playlist.once(on_done=blip,...)
However, it is not yet possible to "rewind" the playlist and allow it to start
again. I could write something for this, just let me know if you are
interested.
Romain
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users