Remote Control Protocol
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
◦
AUXDestChanged
◦
FrameChanged
◦
NativeRateChanged
◦
InputCfgChanged
◦
SourceChanged
◦
BGSourceChanged
◦
PresetChanged
◦
StillChanged
◦
OutputCfgChanged
•
Response:
-
response: {"method": "subscribe"}
-
success: (0=success, anything else is an error)
•
Example:
-
{"params": {"hostname" : "192.168.247.131", "port": "3000", "notification" :
["ScreenDestChanged", "AUXDestChanged"]}, "method":"subscribe", "id":"1234",
"jsonrpc":"2.0"}
unsubscribe
•
Definition:
-
User can use this API to remove the subscription for the given hostname, port, and notificationType.
•
Request:
-
params: {"hostname": hostname, "port": port, "notification" : notificationType
[]}
◦
hostname—Hostname or IP Address from which the subscription is to be removed.
◦
port—TCP port.
◦
notificationTypes—an array of notifications to which a user wants to subscribe.
◦
ScreenDestChanged
◦
AUXDestChanged
◦
FrameChanged
◦
NativeRateChanged
◦
InputCfgChanged
◦
SourceChanged
◦
BGSourceChanged
◦
PresetChanged
◦
StillChanged
◦
OutputCfgChanged
•
Response:
-
response: {"method": "unsubscribe"}
-
success: (0=success, anything else is an error)
•
Example:
-
{"params": {"hostname" : "192.168.247.131", "port": "3000", "notification" :
314
R5909934 /00
E2 Lite and EC-40