Le Tuesday 05 August 2008 18:22:13 Simon Renquin, vous avez écrit :
> Hi,

        Hi Simon !

> I've just discover liquidsoap and I'm planning to use it on my local  
> radio.  

Good to hear !

> It's a huge tool and I love it but I still have a little   
> question.  Is it possible to start/stop an output stream?  Here, I  
> mean, stopping and starting an output.icecast.vorbis source by hand  
> and programatically.  The goal is to avoid using the blank detection  
> and avoid stopping liquidsoap as well.
>
> Similarly, is it possible to halt an input.harbor source with a  
> function (which would be called when a specified metadata is readed)?

Yes, sure.
There are commands attached to each source. In particular, output sources and 
the harbor source both have a start/stop command.

You can test this by hand using the telnet server. In order to enable it, just 
add:
  set("server.telnet",true)
to your script.

After connected to the local port 1234, you'll be able to see the list of 
available commands by typing "help".

Those commands can also be used directly in the script, using the 
server.execute operator. Hence, it is possible to trigger start/stop during 
any triggered event, such as when using on_metadata...



Romain
-- 
Seven miles of Black Star Liners coming in the harbour.
Yeah, seven miles of Black Star Liners coming in the harbour.
I can see them coming.
I can see I dreams running.
I can hear the Elders saying,
These are the days for which we've been praying.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to