-
Notifications
You must be signed in to change notification settings - Fork 0
Event service
Bart De Lathouwer edited this page May 7, 2024
·
4 revisions
One Event service (WebSocket) is started when starting Nexa.
curl -d "{\"topic\": \"all\"}" -X POST http://<yourip>:<your port>/v1/servers/<servername>/subscribe
response:
{"eventServiceUrl":"[ws://<your ip>:63620](ws://<yourip>:<your port>/acme/unit11/v1)"}
Note: this uses the exact same serviceUrl as the service itself. Only 1 port number is used for both the service and the event service. Very handly.
{
"manufacturer": "EVS",
"model": "XT-Via",
"server": "XT2",
"topic": "program",
"action": "update",
"data": {
"program": "PGM1",
"state": "play",
"loop": "false",
"speed": 0,
"videoFormat": "1080i50",
"currectFrame": {
"timecode": "00:00:02:22"
},
"remainingFrames": {
"timecode": "00:00:00:03"
}
}
}