We have written a PTZ service in c# using the samples available on Milestone github pages. We were successfully able to perform PTZ on cameras using this service.
However, when we tried to perform PTZ yesterday, we noticed that the cameras were not moving even though the PTZ commands were successful in the PTZ service. We did not observe any error logs.
What could be the reason for this? We have not upgraded milestone xprotect version or have made any changed to the Milestone setup.
Milestone version: XProtect Corporate 2022 R2
Let me know if you need anything specific from my side.
Have you seen the same issue on Smart Client (not the application)? If so, it could be a general issue. In that case, please ask again in the support community, you should get better help from the partners using the support community.
@Rie Kiuchi (Milestone Systems) Hi, I think we are able to reproduce this. We create a user in Milestone and did not give it permission to perform PTZ. We also verified this in smart client as ptz options were disabled for this user. However, we are able to send successful PTZ requests from the SDK to the milestone server and we get a success response as well BUT that camera does not actually move.
Do you think its a bug in the SDK or we are missing something? let me know if you need to see the source code for PTZ using the milestone sdk. its pretty standard and we have referred to the various articles from milestone itself.
Camera is moving when we use a user who has PTZ rights both from smart client as well as the SDK
@Rie Kiuchi (Milestone Systems) Sorry for the delayed response.
As suggested by you, I tested the PTZ Preset sample, when I login with a user which does not have PTZ rights, it was not able to move the camera, no error was shown. and When I logged in with a user which have PTZ permissions, camera was moving.
Camera name that I have used to test is AXIS Q6135-LE PTZ. However, please note that it is getting reproduced with many other cameras as well which our customer is using.
@Rie Kiuchi (Milestone Systems) PTZ service is running with the same user which I have not given the permissions . IN the code, We first try to log into the milestone using the user which is successful as user have login rights however SDK should have given me an error or warning message when I am trying to perform PTZ.
This is the issue I am facing as I dont receive any error from the SDK. Maybe its a bug which has not been caught before.
I am sorry for asking you a redundant question on the previous post. I have consulted with Milestone Development, and we concluded that it is by design - you send messages, but you don’t get any response - so you will not receive any errors (responses) from MIP SDK. This issue has already been on our wish-list, but for the future functionality, a prioritization needs to be made by Milestone Product Management, so it is not possible to say when, or even if, this will be developed.
Thanks @Rie Kiuchi (Milestone Systems) for your confirmation that MIP SDK does not send error msgs in this scenario. We would be looking forward to this feature being developed in the upcoming MIP SDK releases.