CC-3224: "On-the-fly" stream rebroadcasting
- Form in preference section
This commit is contained in:
parent
309c6da83d
commit
ca04a7a686
6 changed files with 142 additions and 1 deletions
|
@ -38,7 +38,20 @@ server.register(namespace="streams", "connection_status", fun (s) -> begin "1:#{
|
|||
default = amplify(0.00001, noise())
|
||||
default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
|
||||
|
||||
s = fallback(track_sensitive=false, [queue, default])
|
||||
#live stream setup
|
||||
set("harbor.bind_addr", "0.0.0.0")
|
||||
#auth function for live stream
|
||||
def auth(user, password) =
|
||||
if user == 'james' and password == 'james' then
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
live = input.harbor("test", port=8080, auth=auth)
|
||||
|
||||
s = fallback(track_sensitive=false, [live, queue, default])
|
||||
|
||||
s = on_metadata(notify, s)
|
||||
s = crossfade(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue