2013/2/26 Leonard de Ruijter <leesv...@leonardderuijter.nl>: > Hello,
Hi ! Sorry, late response, we're all busy with the release at the moment :-) > I'm new to this list and to liquidsoap in general. I found it to be a > very useful program for the purpose i need it, being a transcoder for a > live stream. I also set up a streamdump output which can be enabled > using the telnet interface, as enabling has to be done on certain > moments during the day. I made the streamdump start command check > whether the source to rip from is available or not using > source.is_ready(). I have the following additional questions: > - I need a way to let the dump.start command check whether a streamdump > is already running. How to accomplish this? Unfortunately, > source.is_ready(streamdump) doesn't seem to work for a file output. Is > there an easy way to retrieve a boolean which is true when the > streamdump is active and false when it isn't, or do i have to write > functions for that? Hmm.. Not sure what you mean by dump.. Could you provide an example script? > - How to define variables which the telnet interface can change? For > example, i want to input a certain time using telnet, on which > liquidsoap should schedule starting a streamdump. var.set time = "test" > returns variable time isn't defined. The most common with recent liquidsoap would be a combination of variable reference and command registration, something like: s = ref "" server.register("get", fun (_) -> !s) server.register("set", fun (value) -> s := value) If you need for instance an integer or a float value, then you will have to convert back and forth from string format using float_of_string and the like.. Hope this helps, Romain ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users