Yes, you can select tracks with the switch operator. And this can
easily be made dynamic using an interactive.bool. For instance:

# Activate the telnet server
set("server.telnet",true)

# The two sources
s1 = playlist("~/Music")
s2 = sine()

# Create an interactive boolean
b = interactive.bool("button", true)

# Switch between the tracks depending on the boolean
s = switch(track_sensitive=false,[(b,s1), ({true},s2)])

# Output the result
output.pulseaudio(s)

By default the source s1 is played. To switch to s2 you can connect on
the telnet server (telnet localhost 1234) and type

var.set button = false

(and of course with true it will go back to s1). Finally, you can
retrieve the value of the button using

var.get button

On Thu, Mar 21, 2013 at 8:08 PM, Martin Konečný
<[email protected]> wrote:
> This is all possible. Look at the "switch" operator. This switch operator
> can be controlled via telnet interface.
>
> Martin
>
>
> On Thu, Mar 21, 2013 at 7:11 AM, <[email protected]> wrote:
>>
>> Hello,
>>
>> We intend to use liquidsoap, but I don't find how I can implement this
>> requirement:
>>
>> We have two streams - one stream is a playlist, the other a live stream.
>> There is of course the 'fallback' operator which enables an automatic switch
>> to the live stream as soon as it has some audio - but that is not what we
>> want. We want to be able to switch to the live stream - and back - at the
>> push of a button. If that transition could also offer a fade-in/fade-out,
>> that would be a bonus. I think it should be doable by creating a web-page
>> which sends commands to the liquidsoap telnet server - but I don't find how.
>>
>> Anyone else has accomplished this?
>>
>>
>> ------------------------------------------------------------------------------
>> 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_mar
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
>
>
> --
> Open source radio in the cloud. Get yours now! ---> http://airtime.pro
>
> Martin Konecny
> Software Developer, Sourcefabric
> [email protected]
>
> 720 Bathurst St. Suite 203
> M5S 2R4, Toronto, ON, Canada
> +1 (416) 892-8420 (Cell)
> Skype: martin.konecny15
>
> http://www.sourcefabric.org
> http://www.twitter.com/Sourcefabric
>
> ------------------------------------------------------------------------------
> 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_mar
> _______________________________________________
> 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_mar
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to