Facility Control

 View Only
  • 1.  Clip list from CasparCG

    Posted 08-23-2017 08:05

    Hello! I am trying to get an response from CasparCG to show in dashboard somewhere.

    I have gotten dashboard to send commandoes to caspar just fine via custom rosstalk commands like this:

    and i can see that Caspar get the commands and respond to them, either play a clip or answers like this:

    Does anyone know where i can show this result and put it in a nice list in dashboard and use for commandoes further?

    Here is the Caspar Documentation: http://casparcg.com/wiki/CasparCG_2.1_AMCP_Protocol



  • 2.  RE: Clip list from CasparCG

    Posted 08-24-2017 18:28

    What you are doing is a simple RossTalk Fire/Forget message.
    If you require 2-way communication, you have several options:

    1. Use rosstalk.sendMessageWithResponse
    2. Use a tag


    You would use rosstalk.sendMessageWithResponse if you still want to close the connection after sending a message and just want to read a relatively simple response from the device.
    You would use the listener tag if you wish to maintain an open connection to the device and send/receive data on a regular basis.

    The sendMessageWithResponse looks a bit like this:

    function callback(success, sentData, resultString, exception)
    {
        
    }
    rosstalk.sendMessageWithResponse('[host]', [port], '[message]', '[end of message indicator]', callback);

    #DashBoard