As of release 184.108.40.206, Windows application development using C# is fully supported by Vidyo.io. This version of the Windows SDK contains C# wrapper classes combined with a dll containing our native library to make this possible:
- VidyoClient-WindowsSDK/include/csharp/*.cs : C# wrapper classes
- VidyoClient-WindowsSDK/lib/windows/Win32/Release/libVidyoClient.dll : dll for 32 bit configurations
- VidyoClient-WindowsSDK/lib/windows/x64/Release/libVidyoClient.dll : dll for 64 bit configurations
In order to integrate Vidyo.io into your C# Windows application, you need to include the C# files mentioned above into your project and place libVidyoClient.dll into your PATH or the directory where your executable is built (bin/debug or bin/release).
The UI element that should be used to render video is a System.Windows.Forms.Panel. An example of how it would be used is below:
Connector connector = new Connector(videoPanel.Handle, Connector.ConnectorViewStyle.ConnectorviewstyleDefault, 15, "info@VidyoConnector info@VidyoClient warning", "", 0);
connector.ShowViewAt(videoPanel.Handle, 0, 0, (uint)videoPanel.Width, (uint)videoPanel.Height);
A full VidyoConnector WPF reference application is in the works and will likely be included in releases starting with 4.1.22. However, there is a beta version of this application which can be accessed here:
The best way to start working with this solution would be as follows:
1. Download and extract the latest Windows SDK: https://static.vidyo.io/latest/package/VidyoClient-WinVS2017SDK.zip
2. Extract the contents of the win-wpf archive provided above.
3. Move the win-wpf folder into the VidyoClient-WinVS2017SDK\samples\VidyoConnector folder, parallel to the win folder.
4. Open the WPF sample solution in Visual Studio.
Note: if you are unable to initially build the solution, please take a look at the post-build events. It contains a small script which copies the libVidyoClient.dll to the sample's output.