VicastCam SDK
Powerful, stable, and easy-to-use audio/video virtual device and screen casting solution, enabling developers to integrate quickly.
Development Language
SDK Usage Notes
This page is used to guide C language clients for quick integration VicastCam Virtual Camera SDK。The client side only needs to include pre_vicastcam_c.h,and place dll the runtime in the DLL folder into the program execution directory。After loading loadvicastcamdll() via vicastcam.dll ,,the g_vicastcam_* function pointer can be called。
Download SDK Component1. SDK Component folder contents
After downloading and extracting VicastCam SDK the component,,C the component directory typically contains the following。

2. Confirm the client program path
Before integration, confirm the code directory and exe output directory of the client program,The following uses myprogram as an example。
C:\myprogram\main.cC:\myprogram\x64\Release\myprogram.exe3. Import VicastCam SDK Component
4. In main.c Used In
In main.c Import Header File at the Top,Then Load DLL、Initialize the Virtual Camera and Call the Function Pointer。
Header File Import
#include "pre_vicastcam_c.h"Basic Initialization and Call Example
#include <windows.h>
#include <stdio.h>
#include "pre_vicastcam_c.h"
int main(void)
{
int ret = loadvicastcamdll(L"vicastcam.dll");
if (ret != ERROR_SUCCESS) {
printf("loadvicastcamdll failed, ret=%d, GetLastError=%lu\n",
ret,
GetLastError());
return ret;
}
ret = g_vicastcam_InitVcam();
if (ret != ERROR_SUCCESS) {
printf("InitVcam failed, ret=%d, GetLastError=%lu\n",
ret,
GetLastError());
return ret;
}
g_vicastcam_SetOutputFormat(1280, 720, 1); /* 0 = YUY2, non-zero = NV12 */
g_vicastcam_SetFriendlyName(L"VicastCam");
g_vicastcam_SetMirrorEnabled(0);
g_vicastcam_SetFlipEnabled(0);
g_vicastcam_setVcamOn(1);
/* Optional: output image or media file to virtual camera */
/* g_vicastcam_getImageToCamera(L"test.png"); */
/* g_vicastcam_getMultiMediaToCamera(L"test.mp4"); */
return 0;
}



