Hi David,
First of all: many many thanks to you!
This is exactly what I was searching for.
From now it is possible to switch between all these streams that easily!
I like the idea to return the currently set URL by the function same
function you call to set it.
Furthermore I like that setting the URL is possible, while the stream
currently plays another URL, so switch can be triggered by stop/play only.
Its even possible to use spaces within URLs.
Switching works very fast, so I think about just setting the new URL
without switching to a second http.input instance.
Only case I found not working, is that wrong typed URLs like
http:/localhost:2345/radio (one / missing after http:/
makes liquidsoap shutdown.
Unfortunately stopping the process cannot be avoided by using fallback
method.
I assume this comes from prior URL handling,
where source URLs were checked at start to find out errors before
running the show?
How do you think about making the source fallable? This could give the
operator the possibilty to fix a wrong URL by server interface.
2011/02/07 03:10:57 [threads:1] Thread "http polling" failed: Invalid
URL "http:/localhost:2345/radio"!!
Thread 4 killed on uncaught exception Failure("Invalid URL
"http:/localhost:2345/radio"!")
Raised at file "pervasives.ml", line 22, characters 22-33
2011/02/07 03:10:57 [main:3] Shutdown started!
2011/02/07 03:10:57 [main:3] Waiting for threads to terminate...
out(mksafe(
fallback([
input.http(id="h1","http://localhost:2345/radio"),
single("say:fallback")
])
))
h1.url http:/localhost:2345/radio
h1.stop
h1.start
BR, Peter
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users