hi ian,

i've defined two transitions for switching to live and back, fading out - not crossfading - my rotation before playing the live stream, on the way back inserting a jingle before resuming rotation:

def to_live( old, new)
  old = fade.final( old)
  sequence( [old, new])
end

def from_live( jingle, old, new)
#  source.skip( new)
  s = add( [ jingle, old])
  sequence( [s, new])
end

if you want to resume the old track that was playing before you went to live keep the skip commented, otherwise you start with a new track after live.

as fallback is expecting only transitions with two parameters, i need to define:

from_live_j = from_live( jingle)

then i call the fallback function with these transitions. as it happened that people forgot to kill the livestream after broadcasting, i'm also doing a blank detection and go back to rotation automatically when there's a minute of silence:

radio = fallback( track_sensitive = false,
                  transitions=[to_live, from_live_j],
                  [strip_blank( length = 60., live), rotation])


hope this helps, at least should give you an idea how you can insert transition methods
peter


On 09/30/12 17:18, Ian Bonham wrote:
Hi Everyone,

I wonder if someone can help me out a little with a LiquidSoap problem I'm having. I'm sure it's very simple, but I can't seem to get it to work. 

I have an input.harbor that comes alive every now and again, and I want to switch from my automated playlist to the live incoming stream, then back to the playlist when it disconnects. That *IS* working fine, but the stream crashes into the playing track. All I am looking for is a simple way for it to crossfade when the fallback swtiches between the playlist and the live, rather than crashing into the current playing track, so it's not such a shock to the listener. 

Any help would be really appriciated. I've tried various techniques (for about 5 hours now!) but it either doesn't work or just refuses to load!

Many Thanks,

Ian B
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users



------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to