#343: create icecast output dynamically over telnet
-------------------------------------------------+--------------------------
Reporter: lukas | Owner: admin
Type: Bugs | Status: new
Priority: 3 | Milestone:
Component: Liquidsoap | Version: 0.9.1+svn
Keywords: server telnet icecast output source | Mac: 0
Linux: 1 | Netbsd: 0
Other: 0 | Freebsd: 0
-------------------------------------------------+--------------------------
Tested on Ubuntu 9.10 (Karmic) with liquidsoap 0.9.1
----
Hello,
I have a webpanel for administration and want to add channels (a.k.a
output sources) dynamically using the telnet interface. I register a
function ''channel.register'' in the init script like so:
{{{
def channel.register (channel)
mlog(level=2,"Registering new channel dynamically.")
mlog("Channel info: #{channel}")
mkchannel(channel)
"Done"
end
server.register(
namespace="channel",
description="Start a radioman controlled channel.",
usage="register '<mount>|<name>|<genre>|<description>'",
"register",
channel.register)
}}}
The function mkchannel parses the input string and creates the source
(that outputs to icecast). When I connect to the telnet interface and
execute the command, the output source is created successfully and begins
to do its magic.
The only problem is that, unlike the channels I create in the init script
at launch time, this source doesn't register its management commands with
the server (i.e. channel_name.start, channel_name.stop, channel_name.skip,
channel_name.status, etc...)
I really need these management commands to also be available for channels
I create dynamically as explained before.
-thanks, Lukas
--
Ticket URL: <http://savonet.rastageeks.org/ticket/343>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac