Streaming server ON/OFF same command

You have a question or need an advice about how to do something? Ask it here!
Post Reply
henkelar
Posts: 27
Joined: 30 Oct 2014 19:55
Location: Sweden
Contact:
Streaming server ON/OFF same command

Post by henkelar »

Hello!

Can I connect streaming server ON/OFF so it is on the same command/button? I can't find it anywhere.
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Streaming server ON/OFF same command

Post by radio42 »

I am not 100% sure, if I understand you correctly?
There is e.g. a STREAMING_SERVER_START_ALL and a STREAMING_SERVER_STOP_ALL control-command which you can use.
Note, that there is no 'Toggle' command, as some servers might not be started due to e.g. network issues.

But if you want to just implement a single user button, which toggles between _START_ALL and _STOP_ALL, you can do this with this command sequence and using your own 'StreamingStarted' user variable, which you define set and use, like this:

Code: Select all

EXEC_COMMAND2 ${VAR:StreamingStarted}|Equals(0)|STREAMING_SERVER_START_ALL${CRLF}EXEC_VAR_SET StreamingStarted|1
EXEC_COMMAND2 ${VAR:StreamingStarted}|Equals(1)|STREAMING_SERVER_STOP_ALL${CRLF}EXEC_VAR_SET StreamingStarted|0

Post Reply