The WinForms/WPF Toolbox no longer supports automatic discovery of controls for .NET 8, the dynamic control discovery is supported only by the NET Framework 4.x.…
Sample code to stream an IP camera or the desktop to social media networks (e.g. Facebook). Requires the Datastead RTSP/RTMP/HTTP/ONVIF Source for the camera capture…
Add <UseWPF>true</UseWPF> to the PropertyGroup of the .csproj or .vbproj
Add “<UseWindowsForms>true</UseWindowsForms>” to the PropertyGroup section of the .csproj or .vbproj
This could be a problem of “read/write” rights in the %temp% folder (the temp folder of the current user).Verify if the application has the “create…
Private Sub Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) VideoGrabber1.OpenURLAsync = False ‘ True for asynchrone capture VideoGrabber1.SetAuthentication(VidGrab.TAuthenticationType.at_IPCamera, “user”, “password”) VideoGrabber1.IPCameraURL = “onvif://192.168.6.122” AddHandler…
private void VideoGrabber1_OnFrameBitmap(object sender, VidGrab.TOnFrameBitmapEventArgs e) { Helpers.TFrameBitmapInfo FrameBitmapInfo = (Helpers.TFrameBitmapInfo)Marshal.PtrToStructure((IntPtr)e.bitmapInfo, typeof(Helpers.TFrameBitmapInfo)); Bitmap bitmap = System.Drawing.Bitmap.FromHbitmap(FrameBitmapInfo.bitmapHandle); … }
– add a reference to the NET DLL of the package corresponding to the .NET Framework version of the .csproj project – start from the…
.NET prevents renaming a .NET assembly. To upgrade the project: – reopen the project – remove the reference to the DLL that has been renamed…
Invoke VideoGrabber->SetParentWindow(WindowHandle) to Pass the handle of the Cwnd window classe in which the video must be displayed. E.g.: m_VideoGrabber = new CVideoGrabber(this); m_VideoGrabber->SetParentWindow (TheWindow->GetSafeHwnd());…