Unreal Engine 4 Genvid Plugin

The GenvidPlugin is a standard UE4 plugin which developers can drop in their UE4 game and very quickly get started with Genvid technologies.

It provides a few utility routines to help interact with the Genvid’s native API. It also provides the necessary code to perform auto-capture of both audio and video data. Finally, as a convenience, it automatically calls Genvid_Initialize() and Genvid_Terminate() when the plugin is loaded and unloaded.

Installation

To install the plugin, simply copy the GenvidPlugin directory inside your game’s plugin directory (e.g. UE4_PROJ_ROOT/MyGame/Plugins).

We recommend copying the plugin inside the game project directory rather than inside the engine’s UE4_PROJ_ROOT/Engine/Plugins directory, as modifying things inside GenvidPlugin will lead to much leaner recompiles.

Once you have copied GenvidPlugin, you need to modify your game’s build script to use this new plugin. This is done by simply adding the following line:

PrivateDependencyModuleNames.Add("GenvidPlugin");

to your game’s build script (e.g. UE4_PROJ_ROOT/MyGame/Source/MyGame/MyGame.Build.cs).

Once that is done, rerun GenerateProjectFiles.bat, and you should have access to the GenvidPlugin.

Normally, the GenvidPlugin should already contain the Genvid Native API libraries. If it doesn’t, or if you need to update the provided files, simply copy the Genvid Native API files to following location:

GenvidPlugin/Binaries/Win32/Genvid.dll
The 32-bit shared library used at runtime.
GenvidPlugin/Binaries/Win64/Genvid.dll
The 64-bit shared library used at runtime.
GenvidPlugin/External/GenvidSDK/include/genvid.h
The header file of the Genvid Native SDK, declaring all of the functions and types.
GenvidPlugin/External/GenvidSDK/lib/Win64/Genvid.lib
The 64-bit import library used when linking. Requires associated Genvid.dll at runtime.
GenvidPlugin/External/GenvidSDK/lib/Win64/Genvid.dll
The 64-bit shared library used at runtime.
GenvidPlugin/External/GenvidSDK/lib/Win32/Genvid.lib
The 32-bit import library used when linking. Requires associated Genvid.dll at runtime.
GenvidPlugin/External/GenvidSDK/lib/Win32/Genvid.dll
The 32-bit shared library used at runtime.

Details

GenvidPlugin/Source/GenvidPlugin/GenvidPlugin.Build.cs
This file is needed to integrate the plugin inside the Unreal Engine build process.
GenvidPlugin/Source/GenvidPlugin/Public/IGenvidPlugin.h
Class defining standard Unreal Engine module interface.
GenvidPlugin/Source/GenvidPlugin/Public/GenvidUtils.h
Utility class for setting up auto-capture as well as for JSON conversion.
GenvidPlugin/Source/GenvidPlugin/Private/GenvidPlugin.cpp
Implementation of the IGenvidPlugin class.
GenvidPlugin/Source/GenvidPlugin/Private/GenvidUtils.cpp
Implementation of the FGenvidUtils class.
GenvidPlugin/Source/GenvidPlugin/Private/GenvidPluginPrivatePCH.h
Used for specifying optional precompiled headers for faster compiles (currently unused).