So far i am able to get SmartClient.PtzCommandOccurredIndication using the sample event listener.
But i need more details,
I tried : if (message.Data is PTZMoveCommandData pTZMoveCom)
So far i am able to get SmartClient.PtzCommandOccurredIndication using the sample event listener.
But i need more details,
I tried : if (message.Data is PTZMoveCommandData pTZMoveCom)
If you use PtzCommandOccurredIndication, you get FQID of the camera. If you need more details of the camera or PTZ or something other than the FQID, then you need to use another method.
Hi, thanks for your reply, I’m not sure what method to use.
We tried all of these:
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler,
new CommunicationIdFilter(MessageId.Server.NewEventIndication));
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler, new CommunicationIdFilter(MessageId.Server.EventCommand));
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler, new CommunicationIdFilter(MessageId.Control.PTZMoveCommand));
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler, new CommunicationIdFilter("*"));
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler, new CommunicationIdFilter(MessageId.Control.PTZMoveStopCommand));
_obj = _messageCommunication.RegisterCommunicationFilter(NewEventMessageHandler, new CommunicationIdFilter(MessageId.Server.NewEventCommand));
Non of them work so far.
None of these works as the information is not passed around, so the method you need is to ask the camera for its current position.
So to be clear, there is no detailled info i get from event what type of PTZ comment is given to the camera’s, other than a command is been given ?
Because i cant get the info from the camera in this case, i was expecting to get detailed info from the client that is sending the info.
You are right, there is no detailed info.