Subscription and un-subscription – Barco PDS-4K HDMI Presentation Switcher User Manual
Page 209
209
R5912621 /01 PDS–4K
"Unknown","CardID":"Undefined"}},{"Card":
{"CardStatusID":2,"CardStatusLabel":
"Ready","CardTypeID":50,"CardTypeLabel":"VPU Scaler","CardID":
"thisissometextforid505"}},{"Card":
{"CardStatusID":2,"CardStatusLabel":"Ready",
"CardTypeID":50,"CardTypeLabel":"VPU Scaler","CardID":
"thisissometextforid506"}},{"Card":
{"CardStatusID":2,"CardStatusLabel":"Ready",
"CardTypeID":50,"CardTypeLabel":"VPU Scaler","CardID":
"thisissometextforid507"}},{"Card":
{"CardStatusID":2,"CardStatusLabel":"Ready",
"CardTypeID":50,"CardTypeLabel":"VPU Scaler","CardID":
"thisissometextforid508"}}]}}}}}
◦
System—System name and index.
◦
FrameCollection—Collection of frames in a system containing frame information.
◦
Frame—Contains frame information.
◦
Id—Mac Id of the frame.
◦
Name—Name of the frame.
◦
Contact—Contact information.
◦
Version—Current version of the software installed on the frame.
◦
OSVersion—Current OS version installed on the frame.
◦
FrameType—0: E2, 1:S3, 2: Ex.
◦
FrameTypeName—Type of the frame: E2/S3/Ex.
◦
Enet—Ethernet settings.
◦
SysCard—System card information.
◦
Slot—List of Input/Output/Expansion card information.
-
success: (0=success, anything else is an error)
•
Example:
-
{"params":{}, "method":"getFrameSettings", "id":"1234", "jsonrpc":"2.0"}
Subscription and Un-Subscription
When a subscription is done from a JSON-based application, a notification is sent to the ip port where the
application is running when there is change for which the user has subscribed.
Actual notification is sent asynchronously as an HTTP Post, with the following structure:
{result:
{method:
"notification",notificationType: "ScreenDestChanged",change: { add: [2],
remove: [], update: [0, 1, 2] }}}.
The change field contains the XmlId(s) of the screens that were added/removed or updated.
All subscriptions are lost once the Event Master processor is restarted, and they must be
subscribed again if required.
subscribe
•
Definition:
-
User can use this API to subscribe to change events in the Event Master processor.
-
Once subscribed, the API sends a notification in the form of an HTTP Post to the Url: http://hostname:
port/.
•
Request:
-
params:
{"hostname": hostname, "port": port, "notification" : notificationType
[]}
◦
hostname—Hostname or IP Address to which the notifications are sent.
◦
port—TCP port to which the notification are posted.
◦
notificationTypes—an array of notifications to which a user wants to subscribe.
◦
— ScreenDestChanged
◦
— FrameChanged