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 anyone helps me?

#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/basicsoap.log")

# playlist 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")

# parrilla
source = switch([
            ({ (6w) and 1h35-1h38}, myplaylist),
            ({ (6w) and 2h38-1h42}, popeye), source
            ])

# 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)

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to