beautypg.com

Json apis – Barco PDS-4K HDMI Presentation Switcher User Manual

Page 200

background image

R5912621 /01 PDS–4K

200

Image B–1 Use JSON from the web application

JSON APIs

Here are some of the JSON APIs defined for controlling the PDS–4K presentation switcher. If you have a host
/ client Event Master setup, JSON must be sent to the host unit. For all the requests, this section explains the
parameter passed or used in the RPC calls. If the params object is blank that means that API doesn’t require a
parameter.

Requests are case sensitive.

allTrans

Definition:
-

It executes the “allTrans” command.

Request:
-

param:

{"transTime": 12}

Float value, will be applied to all armed destinations (optional).

Max value is 12.

Response:
-

response: null

-

success: (0=success, anything else is an error)

Example:
-

{"params":{}, "method":"allTrans", "id":"1234", "jsonrpc":"2.0"}

-

{"params": {"transTime": 1.1 }, "method":"allTrans", "id":"1234",
"jsonrpc":"2.0"}

cut

Definition:
-

It executes the “Cut” command.

Request:
-

params:

{}

- It doesn’t require any parameter.

Response:
-

response: null

-

success: (0=success, anything else is an error)

Example:
-

{"params":{}, "method":"cut", "id":"1234", "jsonrpc":"2.0"}

resetFrameSettings

Definition:
-

Expose ALL reset types on Event Master processor with different options.

Request:
-

params:

{"reset":x}

,

Remote Control Protocol