Hi James!

Le 14 juin 2011 09:23, James Ford <[email protected]> a écrit :
> I would like to add an intro stream which points to an .mp3 file that will
> play as soon as the input.harbor stream is connected introducing the stream
> initiation as it will be interrupting a fallback playlist.  I was thinking
> that on_connect may be able to do that but for the life of me can't figure
> out how to make that work so maybe that isn't it.  For now the input.harbor
> stream just interrupts the fallback playlist suddenly and I'd like to make
> the transition smoother.  If anyone has any ideas they would be greatly
> appreciated.  I'm very new to liquidsoap and script writing in general.

I think that the transitions options of the fallback may be what you
are looking for. This looks like this:

def transition(old,new) =
  sequence([single("/path/to/intro.mp3"),new])
end

s = fallback(transitions=[transition,transition],[live,playlist])

This is a very rough example to show you the idea. You might look at
the documentation for more details, in particular for having different
transitions for live->playlist and playlist->live switches or adding
fade in/out.

Romain

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to