.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
Select the project name and location
Select the Manage NuGet packages
menu item
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.
Available NuGet UI packages:
- VisioForge.DotNet.Core.UI.WPF
- VisioForge.DotNet.Core.UI.WinForms
- VisioForge.DotNet.Core.UI.WinUI
- VisioForge.DotNet.Core.UI.Apple
- VisioForge.DotNet.Core.UI.MAUI
- VisioForge.DotNet.Core.UI.Avalonia
Add the main product package
Each VisioForge SDK has a main package. For example, Video Capture SDK has VisioForge.DotNet.VideoCapture
package.
Available NuGet packages:
- VisioForge.DotNet.VideoCapture
- VisioForge.DotNet.VideoEdit
- VisioForge.DotNet.MediaPlayer
- VisioForge.DotNet.MediaBlocks
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"/>
We can also see the VideoView in the main window.
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.
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
orVisioForge.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.