Control showing the Name of the camera and also shows the icon to zoom/move the camera. However, the streaming is not visible in the control. Please find attached screen-shot.
My application is implemented in .Net 4.8 targeting x64 platform.
ImageViewerControl instance created for MIlestone is added as control to Panel on the WPF form.
Is there any specific configuration or parameter need to set to display the streaming?
I guess you are using ImagViewerWpfControl when using WPF.
https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_image_viewer_wpf_control.html&tree=tree_search.html?search=imageviewer
Maybe you can as a first step tell me if this sample works? - https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/imageviewerclient/readme.html&tree=tree_2.html
If another sample is more like the one you developed, let me know which sample and if it works.
If the sample doesn’t work then please see if the Smart Client (SC) works, on the same PC, same user etc. If the SC doesn’t work you have a general issue and the integration you developed might be OK.
Hi Andersen,
Thanks for your response.
In WPF application, I am using ImageViewerControl and is added to Panel. This Panel is added to WindowsFormsHost under DockPanel.
We have another Winform application and same ImageViewerControl added to Panel works fine.
Code implemented is same as explained in below link:
https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_image_viewer_wpf_control.html&tree=tree_search.html?search=imageviewer
Sample application uses ImageViewerWpfControl and it works as expected.
Regards,
Sudhir
In a WPF application please use ImageViewerWpfControl that is WPF, not ImageViewerControl that is WinForms.
You are actually linking to the documentation for the class we recommend using.
If it works in one implementation it should work in the next one, but rather than troubleshooting maybe try to switch the class and use WPF, I suppose this means getting rid of the WindowsFormsHost and making the code simpler.
Hi Andersen,
As suggested, I used ImageViewerWpfControl. No errors and doesn’t even show the camera name and cursor is not changed on mouse. as show in previous screen shot.
In WPF Usercontrol created a Grid, in Grid created ImageViewerWpfControl. In view model added code added below code
_imageViewerControl1.CameraFQID = _camera.FQID;
\_imageViewerControl1.EnableVisibleHeader = true;
\_imageViewerControl1.EnableVisibleLiveIndicator = EnvironmentManager.Instance.Mode == Mode.ClientLive;
\_imageViewerControl1.AdaptiveStreaming = true;
\_imageViewerControl1.Initialize();
\_imageViewerControl1.Connect();
\_imageViewerControl1.Selected = true;
\_imageViewerControl1.EnableDigitalZoom = true;
No errors but does not show any streaming or camera name as shown in the screenshot in previous post.
Please let me know if we connect remotely to understand what I am missing to fix this issue.
Does the same camera work if you use it in Smart Client from the same PC and with the same user?
It looks much as the VideoViewer sample. Can you confirm that the sample works for you?
Do you see any errors? In VS or in the log at “[C:\ProgramData\Milestone\MIPSDKC](file:C:/ProgramData/Milestone/MIPSDKC):\ProgramData\Milestone\MIPSDK”
Hi Andersen,
Please find attached screenshot showing milestone integrated in my application and VideoViewer.
No errors in “[C:\ProgramData\Milestone\MIPSDKC](file:C:/ProgramData/Milestone/MIPSDKC):\ProgramData\Milestone\MIPSDK”.
Even after using ImageViewerWpfControl the streaming cannot be viewed.
I can only recommend that you debug the application from the Visual Studio and see if there is anything in the output window that leads you to understand what goes wrong.
You can compare to the sample that works and see: If there are anything in the variables or code that is not the same. If there are a difference in the dependent files with each application.