SDK

VicastCam SDK

Powerful, stable, and easy-to-use audio/video virtual device and screen casting solution, enabling developers to integrate quickly.

Comprehensive CompatibilityComprehensive CompatibilitySupports multiple platforms and scenarios
Professional SupportProfessional Support7×24 hour technical support
Simple and Easy to UseSimple and Easy to UseProvides rich API interfaces
Secure and StableSecure and StableHigh-performance transmission and privacy protection

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 Component

1. SDK Component folder contents

After downloading and extracting VicastCam SDK the component,,C the component directory typically contains the following。

VicastCam SDK C component folder

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。

Example of program code pathC:\myprogram\main.c
Example of program execution pathC:\myprogram\x64\Release\myprogram.exe

3. Import VicastCam SDK Component

File / thePlacement LocationDescription
pre_vicastcam_c.hC:\myprogram\And main.c Same Level,For C Source Code Directly #include。
dll All Files Under the Folder DLLC:\myprogram\x64\Release\And myprogram.exe Same Level,Ensure It Can Be Loaded at Runtime vicastcam.dll And Its Dependencies。

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;
}