Your script looks fine, except for this:
source = fallback(track_sensitive=false, [switch([
you should not need the top fallback since the list of sources for it has
only one element.
The reason your final source doesn't switch to the "parilla" part is
probably an issue with decoding of the files listed there. Do you have some
logs to share?
Romain
2016-04-16 19:45 GMT-05:00 <[email protected]>:
> Hi! I'm trying to use the switch command with some video playlists but
> it not works.It jumps to variable jingles or security, but it not plays
> the playlist from switch command. I saw some examples with it but I
> can't reproduce this. And I can't put the logo.
>
> Can you help me?
>
> #!/usr/bin/liquidsoap
> # Log dir
> set("log.file.path","/tmp/basicsoap.log")
>
> # playlist de música o vídeo
> myplaylist = playlist("/home/user/playlist1.pls")
>
> popeye = playlist("/home/user/playlist2.pls")
>
> # Algunas pistas, el directorio
> jingles = playlist("/home/user/publi/")
>
> # Si algo va mal se reproduce este archivo
> security = single("~/MakeMine1948.ogv")
>
> # Añadir un logo
> source = video.add_image(
> width=50,height=43,
> x=10,y=10,
> file="logo50x43.png")
>
> # parilla
> source = fallback(track_sensitive=false, [switch([
> ({ (6w) and 1h35-1h38}, myplaylist),
> ({ (6w) and 2h38-1h42}, popeye),
> ])
> ])
>
> # publicidad
> source = random(weights = [1, 4],[jingles, source])
>
> # comodín
> source = fallback(track_sensitive = false, [source, security])
>
> # Stream it out
> output.icecast(%ogg(%theora(quality=25,width=320,height=240) ,%vorbis),
> host = "localhost",
> port = 8000, password = "password",
> mount = "test.ogg",
> source)
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users