Hi !
Sorry for the late response, we're all busy these days..
You can do that very easily with a recent liquidsoap. Here's a sketch:
# Two variable for source 1 and source 2
play_1 = ref true
play_2 = ref false
# Functions to enable/disable source 2
def enable_2(s) =
play_2 := true
"OK"
end
def disable_2(s) =
play_2 := true
"OK"
end
# Register the commands:
server.register(namespace="#{source.id(source2)}",
usage="enable",
description="Enable source 2",
"enable",enable_2)
# Register the commands:
server.register(namespace="#{source.id(source2)}",
usage="disable",
description="Disable source 2",
"enable",disable_2)
end
(... Same for source 1...)
# combine the sources with a switch
s = switch([ ({!play_1}, source1),
({!play_2}, source2)])
This script should allow you to control through the telnet the values
of play_1 and play_2, therefore the behaviour of the switch.
I have not tested it and it may have typos but I hope it gives you the
information you need..
Romain
2011/4/2 Stakanov <[email protected]>
>
> Hello,
> I'd switch between two sources through a telnet command.
> Ex.
> line_start -> stop the playlist source and start line-in
> playlist_start -> stop the line-in and start the playlist
>
> Like as strip_blank,fallback but in manual mode.
>
> Thanks,
> Stakanov
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users