Would there be some way to allow a command to change the current source? Or is that only possible with source.dynamic? http://savonet.sourceforge.net/doc-svn/reference.html
The script I mentioned earlier claims to do mostly what I want to achieve, although it does it by checking a file and then using the switch command. Although I don't quite understand how it would work dynamically, because it seems like the switch command on line 131 would only be run once at startup, not allowing dynamic changing of sources? http://pastebin.com/Vq83kQEj Here's what I am trying so far: set("log.file",false) set("log.stdout",true) set("log.level",3) set("server.telnet",true) set("server.socket",true) set("server.socket.path","/tmp/liquidsoap.sock") # The file source source = playlist("~/grimeyblimey.m3u",conservative=true) # dj's connect to a second icecast server on port 9000 dj1 = input.http( "http://localhost:9000/dj1.ogg") output.dummy(fallible=true,dj1) dj2 = input.http( "http://localhost:9000/dj2.ogg") output.dummy(fallible=true,dj2) def set_dj (arg) = print("setting live dj to #{arg}") source = arg "Command executed" end server.register("set_dj", set_dj) # We output the stream to an icecast # server, in ogg/vorbis format. output.icecast(%vorbis,id="icecast", fallible=true,mount="my_radio.ogg", host="localhost", password="hackme", source) On Sat, Jan 5, 2013 at 11:14 AM, Tony Miller <[email protected]> wrote: > Thanks! Just what I was looking for, perfect. > > -Tony ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
