Having 4 cameras in 1 floating window?

I am able to get the recording of our cameras using the EnvironmentManager and present them in a floating window, as show in the code below.

var camera = CameraManager.GetInstance().GetCamera($"http://{ipAddress}/");
var data = new ShowCamerasInFloatingWindowData
{
Cameras = new List<Item>() { camera },
BrowseTime = this.timeStamp.AddSeconds(-9),
Mode = Mode.ClientPlayback
};
 
Application.Current.Dispatcher.Invoke(new Action(() =>
{
EnvironmentManager.Instance.SendMessage(new Message(
MessageId.SmartClient.ShowCamerasInFloatingWindowCommand)
{
Data = data
});
}));

Can we reuse the code and show 4 cameras instead as shown here window playback

I have never tried. If I was you I would try it out. You caught my curiosity, please let me know what you find.

Hey it works! adding more camera items works just fine.

It’s dynamic but, is there any way we could re-position the ‘views’ side by side and not stacked? For now, this works for me, Thanks.

This is the fully automated function, and you cannot tweak how it puts the views, but I have a guess that if you have 4 cameras it will start using 2x2.

The alternative (and not so simple) approach would be to build your own temporary view layout, try to explore the Smart Client Hotspot plugin sample and then experiment by changing the layout.

https://doc.developer.milestonesys.com/html/index.html?base=samples/schotspot.html&tree=tree_1.html