schedule as playlist

This commit is contained in:
Evert Prants 2019-01-11 13:36:49 +02:00
parent ae41d11608
commit b8cc526aad
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 12 additions and 6 deletions

1
liq/schedule.pls Normal file
View File

@ -0,0 +1 @@
annotate:width=300,height=400,x=900,y=80:schedule.png

View File

@ -12,22 +12,27 @@ set("frame.video.width",confint("liquidsoap.output.width", 1280))
set("frame.video.height",confint("liquidsoap.output.height", 720))
set("frame.video.samplerate",confint("liquidsoap.output.samplerate", 25))
# Schedule image
video_no_queue = single(confstr("liquidsoap.fallback",""), conservative=true)
video_base = video.add_image(
width=confint("calendar.width", 300),height=confint("calendar.height", 400),
x=900,y=80,
file="schedule.png",
video_no_queue)
add_skip_command(command="schedule.reload", video_base)
image_schedule = playlist("schedule.pls",reload_mode="watch")
image_schedule = mux_audio(audio=blank(),image_schedule)
add_skip_command(command="schedule.reload", image_schedule)
video_base = add([video_no_queue,image_schedule])
# Queue
queue1 = request.equeue(id="queue", conservative=true, length=60., timeout=1000.)
add_skip_command(command="queue.skip", queue1)
# Fallback to queue
source = fallback([queue1, video_base],track_sensitive=false)
add_skip_command(command="skip", source)
# Add file cleanup
source = on_end(delay=0., file_end_cleanup, source)
# Output to RTMP
output.rtmp.live(
key=confstr("rtmp.key",""),
url=confstr("rtmp.url","rtmp://localhost/live"),