Is there a way to do our own on-click events? For example if we have a custom ptz that you guys don’t support and we wanted to capture our own on-click events from the activex and send them to the camera directly?
Basically turn off ptz in milestone and implement the capturing of the click on the video to send it to the custom ptz?
I wonder if you are using the activeX or you are using the ImageViewerControl. Assuming you are using the activeX you can disable the mouse control -
Milestone ImageViewer Active-X
SHORT CImageViewerInterface.SetAllowMouseControlledPtzStatus(SHORT bEnable )
Sets whether mouse controlled PTZ is enabled or not. When set to enabled the user can perform PTZ operations by clicking and dragging the mouse in the ImageViewer window. It is required that the connected camera supports ptzcenter and/or ptzrectangle. The default status is disabled.
Parameters:
bEnable 0 disables mouse controlled PTZ. All other values enables mouse controlled PTZ.
Returns:
1 if the mouse controlled PTZ status has successfully been set. 0 if ImageViewer is not initialized.
-
And use -
Milestone ImageViewer Active-X
void CImageViewerInterface.onClick( )
Event fired when the left mouse button is clicked on ImageViewer. Use the SetOnClickEventStatus function to enable/disable the event.
-