Hi !
Le Wednesday 16 May 2007 18:10:26 Jorge Ignacio Jiménez, vous avez écrit :
> QUESTIONS
>
> 1) My interlude simply does not work, if the user is listening and i kill
> the mount point, the user is disconnected after some seconds without
> interlude song. What is wrong in the code?
I think you misunderstood the interlude thing.. :)
It is not meant to act at icecast level at all.
You approach is the old icecast fallback thing. I guess you drop the
mountpoint when the live starts and then move listeners to the new live mount
point, possibly with an interlude, but surely with discontinuity in the audio
stream..
We partly have designed liquidsoap to get rid of those ugly things and act
directly at the stream level.
Now, for instance at RadioPi, all mount points are permanent, they never
disconnect when a live starts or else. Instead, liquidsoap handles
transitions from and to live..
Let's say you have a playlist source called "playlist", and then you want to
build a source that output either audio data from icecast mount point
live.ogg, when it is available, then you can define those sources:
# Live source from live.ogg:
live = input.http("http://host:port/live.ogg")
# source2: plays live as soon as available, playlist if not. Don't wait for
# the end of any song to switch
source2 = fallback(tracksensitive=false,[live, playlist])
Then source2 will stream live data as soon as it is available, or the
playlist. You may even define a transition that would for instance play a
jingle before live starts, but I'll tell you on this later if you wish.
Then if you want to build a source that uses another fallback when neither
playlist or input.http are available, you can define:
source2 = fallback(tracksensitive=false,[live, playlist, interlude])
interlude will be selected when nothing else is available.
This allows you to never disconnect a mount point, and its listeners.
I hope I've been clear.. Was I ?
> 2)I cannot run the script with the fallback line, my sintax must have a
> problem, how should i rewrite it ?
Yes, the parameters for the array are not mount point names, but list of
sources, as written above..
> 3) the playlist is reproduced by the liquidsoap in random order, what is
> the parameter to change it?
You can use the "mode" parameter:
mode (string | defaults to "randomize"): normal|random|randomize
Romain
--
Why's this fussing and a-fighting?
I wanna know, Lord, I wanna know
Why's this bumping and a-boring?
I wanna know, Lord, I wanna know now