|
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, |
------------------------------------------------------------------------------ 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
