Barco PDS-4K HDMI Presentation Switcher User Manual
Page 205

205
R5912621 /01 PDS–4K
{"id":1,"Name":"PGM2","IsActive":1,"BGLyr":[{"id":0,"LastBGSourceIndex":
-1,"BGShowMatte":1,"BGColor":{"id":0,"Red":0,"Green":0,"Blue":0}},{"id":
1,"LastBGSourceIndex":-1,"BGShowMatte":1,"BGColor":{"id":0,"Red":0,
"Green":0,"Blue":0}}],"Layers":[{"id":0,"Name":"LayerA","LastSrcIdx":4,
"PvwMode":1,"PgmMode":0,"LinkLayerId":-1,"LinkDestId":-1,"Capacity":4,
"PvwZOrder":0,"PgmZOrder":0,"Freeze":0,"ScalingMode":0,"Window":[{"HPos":
0,"VPos":0,"HSize":1920,"VSize":1080},{"HPos":0,"VPos":0,"HSize":1920,
"VSize":1080}],"Source":[{"HPos":0,"VPos":0,"HSize":1920,"VSize":1080},
{"HPos":0,"VPos":0,"HSize":1920,"VSize":1080}],"Mask":[{"id":0,"Top":0,
"Left":0,"Right":0,"Bottom":0},{"id":0,"Top":0,"Left":0,"Right":0,
"Bottom":0}]},{"id":1,"Name":"LayerB","LastSrcIdx":5,"PvwMode":0,
"PgmMode":1,"LinkLayerId":-1,"LinkDestId":-1,"Capacity":4,"PvwZOrder":0,
"PgmZOrder":0,"Freeze":0,"ScalingMode":0,"Window":[{"HPos":0,"VPos":0,
"HSize":1920,"VSize":1080},{"HPos":0,"VPos":0,"HSize":1920,"VSize"
:1080}],"Source":[{"HPos":0,"VPos":0,"HSize":1920,"VSize":1080},{"HPos":
0,"VPos":0,"HSize":1920,"VSize":1080}],"Mask":[{"id":0,"Top":0,"Left":
0,"Right":0,"Bottom":0},{"id":0,"Top":0,"Left":0,"Right":0,"Bottom":
0}]}],"Transition":[{"id":0,"TransTime":1,"TransPos":0,"ArmMode":1},
{"id":1,"TransTime":1,"TransPos":0,"ArmMode":0}],"OutputCfg":[{"id":2,
"Name":"HDMI2A","OutputAOI":[{"id":0,"TestPattern":[{"id":0,
"TestPatternMode":0}]}]}]}},"id":"1234"}
◦
id—index of screen destination.
◦
Name—Name of ScreenDestination.
◦
BGLyr—Background layer index, Last source index of background.
“id”:0 affects the Background in Program. “id”:1 affects the Background in Preview.
◦
BGShowMatte—This is if BG to be matte or not.
◦
BGColor—This is background color.
◦
Layers—Lists layers on screen destination with its properties.
◦
Transition—This property of screen destination contains the transition time (from time to move from
preview to program).
◦
ScalingMode: 0 = all. 1 = center cut
-
success: (0=success, anything else is an error)
•
Example:
-
{"params": {"id": 0}, "method":"listContent", "id":"1234", "jsonrpc":"2.0"}
activateCue
•
Definition:
-
This API provides the option to play/pause/stop a cue.
•
Request:
-
params:
{"id": 1, "type": x}, "method":"activateCue", "id":"1234",
"jsonrpc":"2.0"}
◦
id – Index of the cue
◦
type – (Default is play). x" can be : 0 — Play. 0 is the default value for the type parameter. 1 —
Pause, 2 – Stop
-
params:
{"cueName": "Cue1", "type": x}, "method":"activateCue", "id":"1234",
"jsonrpc":"2.0"}
-
params:
{"cueSerialNo": 1.00, "type": x}, "method":"activateCue", "id":"1234",
"jsonrpc":"2.0"}
•
Response:
-
response: null
-
success: (0=success, anything else is an error)
•
Example:
-
{"params": {"id": 1}, "method":"activateCue", "id":"1234", "jsonrpc":"2.0"}
//Play – no parame or type 0
-
{"params": {"type": 1}, "method":"activateCue", "id":"1234", "jsonrpc":"2.0"}
//Pause – type 1