Architecture
Video Display and Overlay
Simplify Video Display Control and Integration with Smart Client
The UI component of the MIP SDK provides a few key UI controls. Currently, the following components are available:
- Item Picker: A UserControl that lets the user select a camera, a preset, or any other item defined on the Milestone Server or in any plug-in. The control has properties for determining how to filter on specific kinds ofitems, or specific categories of items
- Video UserControl: Displays live and playback video
- Can be configured by the controlling plug-in in many aspects
- Can integrate directly with Smart Client playback time control
- Supports option to draw overlay on top of video
- Playback Control: Can be used for standalone applications running outside the Smart Client
- Exception dialog for showing application exceptions
When running in the Smart Client, the UI components will utilize the EnvironmentManager and the Configuration classes for access to relevant information. For example, the ItemPicker will access configuration in the order the user clicks in the UI. When the user clicks a plus sign in the tree control; an asynchronous method is called to supply next level of items, whereby only relevant configuration is fetched from the servers.
Overlay Add-on
Any plug-in in the Smart Client can subscribe to the NewImageViewerControlEvent located in the ClientControl class.
When a new ViewItem with an ImageViewerControl is created, the EventHandlers registered on that event are called, and made aware of the new ViewItem. The handler can utilize the ImageViewerAddOn class delivered with the event to further control the ImageViewer.
Some of the control functions are:
- Setting and clearing overlays
- Controlling and overriding live mode video display
- Live information about connection status
- Get snapshots of Images, information of cameraId (can change)
- Understand the placement of the ImageViewer