Hi,
I am using Multiwindow and trying to display recorded video for specific DateTime on multiple displays based on window FQID.
Using “ChangeModeCommand” to change mode (Playback).
ClientControl.Instance.CallOnUiThread(() => EnvironmentManager.Instance.PostMessage(new VideoOS.Platform.Messaging.Message(
MessageId.SmartClient.ChangeModeCommand)
{ Data = Mode.ClientPlayback }, windows\[wIndex\].FQID));
If video is going to play on Main window then assining null to WindowFQID and using SelectWindow command.
if (windows[wIndex].FQID.ObjectId == windows[wIndex].FQID.Kind)
{
//Make sure the Main window is in focus(selected), otherwise the playback wont start ?????
MultiWindowCommandData data = new MultiWindowCommandData();
data.MultiWindowCommand = MultiWindowCommand.SelectWindow;
data.Window = null;
ClientControl.Instance.CallOnUiThread(() => EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(
MessageId.SmartClient.MultiWindowCommand, data), null, null));
windows\[wIndex\].FQID = null;
}
If it is not Main window, It should display recorded video from specified time based on WindowFQID.
PlaybackCommandData pcdGT = new PlaybackCommandData() { Command = PlaybackData.Goto, DateTime = integralST };
PlaybackCommandData pcdPF = new PlaybackCommandData() { Command = PlaybackData.PlayForward, Speed = 0 };
ClientControl.Instance.CallOnUiThread(() => EnvironmentManager.Instance.SendMessage(
new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackCommand, pcdDT), windows\[wIndex\].FQID));
ClientControl.Instance.CallOnUiThread(() => EnvironmentManager.Instance.SendMessage(
new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackCommand, pcdPF), windows\[wIndex\].FQID));
Recorded video is playing on Main window for specified datetime but other displays (secondary display) are just changing to playback mode and not palying video for specified datetime.
I am using Xprotect Smart Client 2023 R3 version. It was working fine in 2022 R3 version.
Regards,
Priyanka