-added listen to icecast stream through browser option. Fixed various bugs in now playing screen. added fade support to liquidsoap script
This commit is contained in:
parent
a2a8a8eae3
commit
5b11025b31
9 changed files with 181 additions and 102 deletions
|
@ -42,6 +42,13 @@ def notify(m)
|
|||
print("./notify.sh --data='#{!pypo_data}' --media-id=#{m['media_id']}")
|
||||
end
|
||||
|
||||
def crossfade(s)
|
||||
s = fade.in(type="log", s)
|
||||
s = fade.out(type="log", s)
|
||||
fader = fun (a,b) -> add(normalize=false,[b,a])
|
||||
cross(fader,s)
|
||||
end
|
||||
|
||||
server.register(namespace="scheduler","push", scheduler_push)
|
||||
server.register(namespace="scheduler","flip", fun (s) -> begin scheduler_flip() end)
|
||||
server.register(namespace="vars", "pypo_data", fun (s) -> begin pypo_data := s "Done" end)
|
||||
|
@ -51,6 +58,8 @@ radio = fallback(track_sensitive=false, [switch(track_sensitive=false, [(fun ()
|
|||
|
||||
#radio = on_metadata(notify, radio)
|
||||
|
||||
radio = crossfade(radio)
|
||||
|
||||
#out(radio)
|
||||
clock(id="clock_icecast",
|
||||
output.icecast(%mp3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue