When I am controlling a PTZ camera in the Smart Client, how do I get the coordinates (in the camera view) where I clicked? I need to send these coordinates in an API request to the camera. Is there a demo or article you can point me to? Thanks.
I have an idea that you can use
MouseEventHandler VideoOS.Platform.Client.ImageViewerAddOn.MouseClickEvent
I have never tried this. I do not think there is a sample that does this. I hope the hint will work, let me know..
Thanks Bo, I think I found a method that works by getting the relative image size but ran into another issue while testing. We are clicking an object in motion and the Milestone server I am using has a several second delay. So the ImageViewer coordinates where I click are innaccurate. I did a quick search and don’t see a solution, is this solvable?
I have an idea that it might be possible to find out the delay by using - ImageDisplayedHandler VideoOS.Platform.Client.ImageViewerAddOn.ImageDisplayedEvent - somehow. But there is no way to find out what a PTZ position was, there is no historical data or similar, you only have the possibility to ask for the current position.