Page 1 of 1

Streaming server ON/OFF same command

Posted: 02 Dec 2023 23:20
by henkelar
Hello!

Can I connect streaming server ON/OFF so it is on the same command/button? I can't find it anywhere.

Re: Streaming server ON/OFF same command

Posted: 03 Dec 2023 13:02
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