Hello,
I am developing a plugin where I can click overlay “buttons” to trigger a specific event. The problem is that I have a PTZ camera in the view, and when I click the screen I trigger the goto function.
I know that there’s a PTZ click mode in setup but that doesn’t look like it can disable it. And I guess it can be disabled in the configuration.xml, but that’s not the best solution for me.
The Active-X seems to have something I’m looking for but can’t find anything similar.
CImageViewerInterface.SetAllowMouseControlledPtzStatus(SHORT bEnable )
So long story short; How can I disable the mouse PTZ click in code?
Hi. One option for you is to make a Smart Client plugin that has your own ImageViewer control to display video from the camera. In your image viewer control you can use this boolean property to disable PTZ: VideoOS.Platform.Client.ImageViewerWpfControl.EnableMouseControlledPtz
Thank you for your response.
That is one option I’ve thought about but rather avoid for this plugin. It shares features with another plugin and it would force me to rewrite that one as well.
Is there no way to actually access the ImageViewerController for the current view, and disable it that way?
After talking to SC team, it seems to be no way to access that Smart Client elements from plugins, as it’s built in features of Smart Client
That’s unfortunate. But thank you for your help and response.
Sorry, if it’s a bit to late, but we have found a sample that might actually do what you want, as this feature was implemented recently. Please check this sample and how the Toggle bounding box button works without triggering PTZ clicks. https://doc.developer.milestonesys.com/html/samples/activeelementsoverlay_sample.html