Skip to main content

.Net SDKs usage with Visual Studio for Mac

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

This tutorial describes how to install VisioForge .Net SDKs into Microsoft Visual Studio for Mac.

We'll use the macOS application as an example. You can use the same steps for the iOS application.

Create the Mac project

screenshot 1

Add NuGet packages

Select the Manage NuGet packages menu item.

Add the main SDK package

Each VisioForge SDK has a main package. For example, Media Player SDK has VisioForge.DotNet.MediaPlayer package.

Available NuGet packages:

screenshot 2

Add the Apple UI package

Apple UI package contains UI controls for the .Net macOS and iOS platforms.

screenshot 3

Add the VideoView to the main window (Optional)

If we want a video preview in our application, we must use the VideoView control.

We need to add the Custom View control to the main window that will host the VideoView.

Edit the Storyboard file in XCode to add the Custom View control.

screenshot 4

screenshot 4

Now, change the ViewDidLoad method in the ViewController.cs file.

public override void ViewDidLoad ()
{
base.ViewDidLoad ();

// create and add VideoView
_videoView = new VideoViewGL(new CGRect(0, 0, videoViewHost.Bounds.Width, videoViewHost.Bounds.Height));
this.videoViewHost.AddSubview(_videoView);

// ...
}

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.


Visit our GitHub page to get more code samples.