SDK

VicastCam SDK

Matatag, matatag, at madaling gamiting solusyon para sa audio-video virtual device at screen casting, na tumutulong sa mga developer na mabilis na maisama.

Ganap na PagkakatugmaGanap na PagkakatugmaSumusuporta sa maraming platform at sitwasyon
Propesyonal na SuportaPropesyonal na Suporta×24 na oras na teknikal na suporta
Simple at Madaling GamitinSimple at Madaling GamitinNagbibigay ng masaganang API interface
Ligtas at MatatagLigtas at MatatagMataas na pagganap na paghahatid at proteksyon ng privacy

Wika ng Pag-develop

SDK Paalala sa Paggamit

Ang pahinang ito ay para sa gabay C sa mabilisang pagsasama ng mga kliyenteng gumagamit ng wika VicastCam Virtual Camera SDK。Ang panig ng kliyente ay kailangan lamang isama pre_vicastcam_c.h,at ilagay ang dll runtime mula sa folder na DLL sa direktoryo ng pagpapatakbo ng programa。Sa pamamagitan ng loadvicastcamdll() pag-load ng vicastcam.dll pagkatapos,ay maaari nang tawagin ang g_vicastcam_* function pointer。

I-download SDK Component

1. SDK Nilalaman ng folder ng component

Pagkatapos i-download at i-unzip VicastCam SDK ang component,C Ang direktoryo ng component ay karaniwang naglalaman ng sumusunod。

VicastCam SDK C component folder

2. Kumpirmahin ang path ng programa ng kliyente

Bago isama, kumpirmahin muna ang code directory at exe output directory ng programa ng kliyente,Sa ibaba ay gagamitin ang myprogram bilang halimbawa。

Halimbawa ng code path ng programaC:\myprogram\main.c
Halimbawa ng execution path ng programaC:\myprogram\x64\Release\myprogram.exe

3. Import VicastCam SDK Component

File / folderPlacement locationDescription
pre_vicastcam_c.hC:\myprogram\With main.c Same level,For C Source code directly #include。
dll All files under the folder DLLC:\myprogram\x64\Release\With 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;
}