Hi all!
2012/10/27 Peter Walter <[email protected]>:
> you can start and stop the input.http via telnet or socket. you might do
> this e.g. with a cronjob and then use a fallback when the http source
> becomes available instead of switching.
In addition to that, you can always start and stop a source from a
script by tapping into the server commands as well:
s = input.http(...)
def stop() =
ignore(server.execute("#{source.id(s)}.stop"))
end
def start() =
ignore(server.execute("#{source.id(s)}.start"))
end
This should work regardless of whether or not you have enabled telnet
or socket access.
Romain
> On 10/27/12 23:39, Kris Lipscombe wrote:
>
> Hey everyone,
>
> So I've had a request that we need to relay a stream, but only from 3pm to
> 5pm on a Sunday. Now I've got the switch logic setup for that just fine, but
> I want to only start up the connection to the relay source when I switch to
> it, and kill it afterwards. The source isn't up the rest of the week anyway,
> at least not that I can see, so polling it is, of course, pointless.
>
> Now I can obviously set autostart on the input.http to false, but then I
> flounder. How do I get it to start? Switching to it doesn't start it up, not
> that I really expected it to, so any help would be greatly appreciated. Is
> the best way just to create the source using a transition function, and kill
> it again afterwards?
>
> Hope you guys can help,
>
> Kris
>
> --
> Kris Lipscombe
> Head of Tech
> University Radio Falmer
>
> www.urfonline.com
>
>
> ------------------------------------------------------------------------------
> WINDOWS 8 is here.
> Millions of people. Your app in 30 days.
> Visit The Windows 8 Center at Sourceforge for all your go to resources.
> http://windows8center.sourceforge.net/
> join-generation-app-and-make-money-coding-fast/
>
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
> ------------------------------------------------------------------------------
> WINDOWS 8 is here.
> Millions of people. Your app in 30 days.
> Visit The Windows 8 Center at Sourceforge for all your go to resources.
> http://windows8center.sourceforge.net/
> join-generation-app-and-make-money-coding-fast/
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users