Hello,

Thanks for your answer. In the meanwhile, i've managed to answer the 
first question by myself. I created a variable dumping=ref False and 
made the streamdump start function set it to true as soon as a dump is 
started.
I"m sure your second answer will allow me to improve my script. I have 
one additional question. Is it possible to schedule the execution of a 
certain function on a certain time, where the time is saved in a variable?

Thanks,
leonard
On 3/4/2013 21:18, Romain Beauxis wrote:
> 2013/2/26 Leonard de Ruijter <[email protected]>:
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to