Hi david, as always thanks for your quickly reply.
I was looking to the switch and fallback and could do some stuff, but i
could not make the following:
Play source "Musics"
When it comes to the time 10:30 play one spot from source "Spots".
Return to source musics
I tryied something like this:
mount='stream.ogg',
fallback(track_sensitive=false,[
at({10h30m-11h},delay(7200.,delay(firula)),
at({ true},musica)
])
But it still waited for the end of the track, i tryied with switch and the
parameter "single" but it still didn't cut the music and for some reason it
was like : Play once the ones with single true but if i restart the script
and play again it still didn't considered them.
I was looking in the list and i think i have the same problem of Kyriakos
Tsoukalas
Hi all,
I have liquidsoap beta 1 running and a recipe for jingle scheduling like
this:
-----
pls_chillout = playlist(reload_mode = "rounds", mode = "randomize", reload
= 1,
"replay_gain:/home/ftp/
hocaradio/schedule/chill_out")
jingle1 = single("/home/ftp/hocaradio/schedule/_jingles/jingle1.mp3")
radio = fallback([switch([({ 0h-0h05m }, fallback([once(jingle1),
pls_chillout])),
({ 0h05m-0h30m }, pls_chillout),
...
-----
I want jingle1 played once between 0.00 and 0.05 and then go to the playlist
pls_chillout. What would be the best solution provided that i am using
[switch].
Thanks in advance.
Kyriakos
Em 6 de setembro de 2011 03:14, David Baelde <[email protected]>escreveu:
> Hi,
>
> 2011/9/5 Fábio Costa <[email protected]>:
> > I as wondering if i can give an external invocation to liquidsoap to
> pause
> > some music and play another one instead.
>
> You can have several sources in one setup, and control in many ways
> how to switch between them. When you write a switch you can use
> arbitrary switching predicates, including one that will vary with
> external interaction. Something you can try quickly:
> switch([({test_process("test -f
> /path/to/file1")},s1),({test_process("test -f /path/to/file1")},s2)])
> This will play s1 if file1 exists, otherwise s2 if file2 exists,
> otherwise be unavailable.
>
> A lighter variant using references instead of the filesystem:
> play_1 = ref(false)
> play_2 = ref(false)
> switch([({!play_1},s1),({!play_2},s2)])
> Then you add server commands using server.register() to toggle the
> play_i flags, and you control who plays.
>
> Another way is using the mix() operator, which is a full mixing table
> but has builtin controls (accessible via the server) for switching.
>
> > If it's possible and i'm running multiple scripts how i would make to say
> > 'Stop this stream,from that script and play that other one' ?
>
> If it's different scripts, then they have to communicate, typically
> using an HTTP stream (icecast or harbor), and you gather the streams
> in another liquidsoap that does the switching as described above. But
> unless you have a good reason, it's probably simpler (and cleaner) to
> put all the sources together in one script and do the switching before
> output.
>
> Hope this helps,
> --
> David
>
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users