B. Remote Control Protocol
listDestinations
•Definition
- This API lists all the destinations with properties such as layers, outputs, id, size, and name.
• Request:
- params: {"type": x}
o
0—Show all the destinations.
0 is the default value for the type parameter.
o
1—Only screen destinations.
o
2—Only aux des tinations.
• Response:
- response: Array of : {"ScreenDestination":[{"id": 0, "Name": "Dest1", "HSize": 3840,
"VSize": 1080, "Layers": 1,"DestOutMapColl":[{"id": 0"DestOutMap":[{"id": 0, "Name":
"Out1", "HPos": 0, "VPos": 0, "HSize": 1920, "VSize":1080, "Freeze": 0},{"id": 1,
"Name": "Out2", "HPos": 1920, "VPos": 0, "HSize": 1920, "VSize":1080, "Freeze":
1}]}]}],"AuxDestination":[{"id": 0, "AuxStreamMode": 4}, {"id": 1, "AuxStreamMode":
4}]}"
- succ e ss : (0 = su cc e ss, an yth in g else is a n error)
• Example:
- {"params": {"type": 0}, "method":"listDestinations", "id":"1234", "jsonrpc":"2.0"}
listSources
•Definition
- This AP I lists all the input s ources with properties.
• Request:
- params: {"type": x}
o
0—Show all the input sour ces.
0 is the default value for the type parameter.
o
1—Only background sources.
• Response:
- response: Array of : {"id": 0, "Name": "InSource1", "HSize": 3840, "VSize": 1080, "Src-
Type": 0, "InputCfgIndex": -1, "StillIndex": 0, "DestIndex": -1, "UserKeyIndex": -1,
"Mode3D": 0, "Freeze": 1, "Capacity": 2, "InputCfgVideoStatus": 4}
- succ e ss : (0 = su cc e ss, an yth in g else is a n error)
• Example:
- {"params": {"type": 0}, "method":"listSources", "id":"1234", "jsonrpc":"2.0"}
516
R5905948 EVENT MASTER DEVICES 17/07/2017