I’ve develop a smart client plugin and I need to obtain the actual view to know the index of each element in this view.
I can obtain all the views but I don’t know how to obtain the actual.
I’ve develop a smart client plugin and I need to obtain the actual view to know the index of each element in this view.
I can obtain all the views but I don’t know how to obtain the actual.
More information:
We send message to camera elements:
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.SetCameraInViewCommand, new SetCameraInViewCommandData()
{
Index = viewIndex++,
CameraFQID = cameraItem.camera.FQID,
StreamId = Guid.Empty
}));
But in some views our plugin is in index =0 but in another views is in another index. We need to differentiate the index of the cameras or our plugin.
You can use SelectedViewChangedIndication message to get information about current view. The message returns object of ViewAndLayoutItem type with data of this view.
You can take a look at Smart Client Insert Camera sample which uses that message - see code in SCInsertCameraSidePanelWpfUserControl class.