So I'm very new to all of this, both live code and Caspar CG, so far so good I've managed to get Caspar working with it's client and with Telnet commands. I've started to create a client in Livecode to allow me to control the server, and it connects. I see that a connection has been made server side, however then I created a button to play a video on the server, just as a test, and nothing happens server side. I don't see the command come in.
The code for my connection button looks like this:
Code: Select all
global casparServer
-- if casparServer is not among the lines of opensockets then
-- end if
on mouseUp
if field "Server2" is empty then
set the backgroundcolor of button "Server2" to "Gray "
else
put field "Server2" into casparServer
if casparServer is among the lines of the opensockets then
close socket casparServer
set the backgroundcolor of button "Server2" to "Gray "
else
open socket to casparServer
set the backgroundcolor of button "Server2" to "green"
end if
end if
end mouseUp
Code: Select all
on mouseUp
write "play 1-1 pure" to socket casparServer
end mouseUp
Any help would be really appreciated