Skip to main content

.Net SDKs usage with Visual Studio

Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net

We strongly suggest using NuGet packages to install SDK into your application.

An alternative manual installation is described at the end of this tutorial.

NuGet packages installation

Create the WinForms or WPF project (we use WPF). Use the modern project format

screenshot 1

Select the project name and location

screenshot 2

Select the Manage NuGet packages menu item

screenshot 3

Add the UI package

We'll add the WPF UI package as an example. You can add the WinForms UI package in the same way.

screenshot 4

Available NuGet UI packages:

Add the main product package

Each VisioForge SDK has a main package. For example, Video Capture SDK has VisioForge.DotNet.VideoCapture package.

screenshot 5

Available NuGet packages:

Add the VideoView to the main window (Optional)

If we want the video preview in the main window, we can add the VideoView control. We can add it in the XAML code or the code-behind file.

Let's add it to the XAML code.

Add the new namespace.

xmlns:wpf="clr-namespace:VisioForge.Core.UI.WPF;assembly=VisioForge.Core.UI.WPF"

Add the VideoView control.

<wpf:VideoView 
Width="640"
Height="480"
Margin="10,10,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"/>

screenshot 6

We can also see the VideoView in the main window.

screenshot 7

Add the required redist packages

Depending on the platform, product, and used engine, you may need to add additional redist packages.

Please check the Deployment page for the selected product for more information.

screenshot 8

Manual installation (we strongly do not recommend this way)

  • Download the setup file from our website. Run the setup file and follow the instructions.
  • Create the WinForms or WPF project (we use WPF).
  • Create the new Toolbox item group, and name it VisioForge. Add the required controls to the group from VisioForge.Core.UI.WPF.dll or VisioForge.Core.UI.WinForms.dll.
  • Place the VideoView control into your window to see the video preview.

Visit our GitHub page to get more code samples.