Livecode client for Caspar CG - Connecting but nothing else
Posted: Wed Nov 18, 2015 12:52 pm
Hi all,
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:
And the code for the Play button looks like this:
Can anyone shed some light on where I'm going wrong? I would understand if the server recieved the command but couldn't understand it due to poor syntax or formating however the fact the server doesn't see anything is leaving me perplexed without much of an idea as to how to check if anything is actually being sent from the livecode app.
Any help would be really appreciated
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