How do I get pure video stream ?
There is code.
in xaml
<platformclient:ImageViewerWpfControl x:Name=“_imageViewerControl” Grid.Row=“0”/>
in cs
if (FindCamera())
{
if (MainWindow.\_imageViewerControl.CameraFQID != null)
{
MainWindow.\_imageViewerControl.Disconnect();
}
MainWindow.\_imageViewerControl.EnableVisibleLiveIndicator = EnvironmentManager.Instance.Mode == Mode.ClientLive;
MainWindow.\_imageViewerControl.MaintainImageAspectRatio = true;
MainWindow.\_imageViewerControl.SetVideoQuality(0, 1);
MainWindow.\_imageViewerControl.CameraFQID = \_camera.FQID;
MainWindow.\_imageViewerControl.Initialize();
MainWindow.\_imageViewerControl.Connect();
MainWindow.\_imageViewerControl.Selected = true;
MainWindow.\_imageViewerControl.StartLive();
}
Always is this
somtimes is this
It’s not I can control…
I’m using smart map, it’s pure video stream…
The grey mask and the error message indicate that the control is in playback mode, availabiltiy of recorded video for the time will then determine whether you get video or the grey frame.
Does it make a difference if you are on a view on the Live tab or Playback tab in the Smart Client?
sorry, update my question…
- I’m learning ComponentSamples’s PlaybackWpfUser project
- using this sample connect video stream code,
- and new project HongGMap,
- build to [C:\Users\WeiJheHong\Documents\Visual](file:C:/Users/WeiJheHong/Documents/Visual) Studio 2017\Projects\HongGMap\HongGMap\bin\Debug\HongGMap.dll
5. put in the [C:\Program](file:C:/Program) Files\Milestone\MIPPlugins\HongGMap\
6. run this ‘XProtect Smart Client 2018 R3 (64-bit)’
in xaml
<platformclient:ImageViewerWpfControl x:Name=“_imageViewerControl” Grid.Row=“0”/>
in cs
if (FindCamera())
{
if (MainWindow.\_imageViewerControl.CameraFQID != null)
{
MainWindow.\_imageViewerControl.Disconnect();
}
MainWindow.\_imageViewerControl.EnableVisibleLiveIndicator = EnvironmentManager.Instance.Mode == Mode.ClientLive;
MainWindow.\_imageViewerControl.MaintainImageAspectRatio = true;
MainWindow.\_imageViewerControl.SetVideoQuality(0, 1);
MainWindow.\_imageViewerControl.CameraFQID = \_camera.FQID;
MainWindow.\_imageViewerControl.Initialize();
MainWindow.\_imageViewerControl.Connect();
MainWindow.\_imageViewerControl.Selected = true;
MainWindow.\_imageViewerControl.StartLive();
}
how do I coding ‘connect video stream’, and no grey mask.
It’s not playback mode.
I want to see live video mode, thanks.
and I have two environment,
different version,
put the same HongGMap.dll to run result,
one is ‘XProtect Corporate 2018 R3 Pilot’, but have grey mask video stream…
the other is ‘XProtect Essential+ 2018 R2’, there is normal video stream…
It’s version problem?
or where code must to be modify or add some setting ?
It’s solved.
add belong code
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(
VideoOS.Platform.Messaging.MessageId.System.ModeChangeCommand,
Mode.ClientLive), ClientControl.Instance.GeneratePlaybackController());
It can be remove grey mask, in ‘XProtect Corporate 2018 R3 Pilot’ version.