Hi Hyun
Fallback as you have configurate, is to play "jingles" only in the case
all the switches fails.
The only way I know and I will made is this:
security = single("/path-to/silence.mp3")
englishTimed = switch(track_sensitive = true, [
({0h0m0s-0h5m0s},delay(1200.,jingle)),
({0h0m5s-6h}, one),
({6h0m0s-6h5m0s},delay(1200.,jingle)),
({6h0m5s-12h} , two),
({12h0m0s-12h5m0s},delay(1200.,jingle)),
({12h0m5s-18h}, three),
({18h0m0s-18h5m0s},delay(1200.,jingle)),
({18h0m5s-0h} , four)
])
englishTimed = fallback(track_sensitive = true, [englishTimed, security])
output.icecast(%mp3,
mount="English_Bible",
host=serverHost,
port = serverPort,
password = serverPassword,
englishTimed,
restart=true,
genre="Christian",
description="my Radio",
url="http://myradio.org:8000/English_Bible.m3u")
Maybe there is another way (and better) to acomplish the same, but I
don't know how to do. Do not use fallible=tru in icecast, because you
already have a fallback.
Tell me if this worked
Normando
El 18/12/2010 05:48 p.m., Hyun-ki Chung escribió:
Hi,
For a test, I tried to schedule my radio station program by means of a
switch predicate, so that four test programs can run at specified hour
ranges and a jingle can play before the transition of each program occurs.
I have four test program playlists to schedule and one station id. The
following is a part of my script. When I start this script, it doesn't
cast at all, even though there is no syntax error. (I couldn't clearly
understand how to play jingle in between the programs in this test
case, but I just added the jingle to the switch predicate. So, please
let me know how to play jingle for this case.)
one = playlist(mode="normal",
"/home/liquidsoap/audio/test/english/test1.m3u")
two = playlist(mode="normal",
"/home/liquidsoap/audio/test/english/test2.m3u")
three = playlist(mode="normal",
"/home/liquidsoap/audio/test/english/test3.m3u")
four = playlist(mode="normal",
"/home/liquidsoap/audio/test/english/test4.m3u")
jingle = single ("/home/liquidsoap/audio/test/english/station_id1.mp3")
englishTimed = fallback (track_sensitive=false,
[switch ([({0h-6h} , one),
({6h-12h} , two),
({12h-18h}, three),
({18h-0h} , four)
]), jingle])
output.icecast(%mp3, mount="English_Bible", host=serverHost, port =
serverPort, password = serverPassword,
englishTimed, restart=true, fallible=true, genre="Christian",
description="my Radio", url="http://myradio.org:8000/English_Bible.m3u")
P.S. thanks for your answer to my last question.
Hyunki
_H_yun_k_i /C/hung
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users