R5905948 /12 Event Master Devices 567
• Request:
- params: {"id":x , "Name": "AuxDest1" , "PvwLastSrcIndex": y , "PgmLastSrcIndex":
z}
◦ id—Index of the Aux destination.
◦ Name—Name of Aux destination. (Optional paramter)
◦ PvwLastSrcIndex—Input/Background source index to set in Aux destination in the preview area.
◦ PgmLastSrcIndex—Input/Background source index to set in Aux destination in the program area.
• Response:
- response: null
- success: (0=success, anything else is an error)
• Example:
- {"params": {"id":0 , "Name": "AuxDest1" , "PvwLastSrcIndex": 6 ,
"PgmLastSrcIndex": 1}, "method":"changeAuxContent", "id":"1234",
"jsonrpc":"2.0"}
- {"params":{"id":0, "TestPattern" :3 }, "method":"changeAuxContent",
"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
◦ AUXDestChanged
◦ FrameChanged
◦ NativeRateChanged
◦ InputCfgChanged
◦ SourceChanged
◦ BGSourceChanged
◦ PresetChanged
◦ StillChanged
◦ OutputCfgChanged
◦ CueChanged
• Response:
- response: {"method": "subscribe"}
- success: (0=success, anything else is an error)
Remote Control Protocol