This is a modified version of the Virtual Camera module from within OBS, providing clients in C/C++ and Node.js.
Using Libobs or separating modules from OBS may not be a difficult task, but this project simplifies the process.
This is a normal CMake project that follows the standard CMake generation steps.
mkdir build
cd build
cmake ..
cmake --build .
The npm project automatically triggers the compilation process during the install phase.
cd napi
npm i
Firstly you need to register the DLL to the system service, this is a key step to get the virtual camera registered to the system.
regsvr32.exe /i /s "\to\path\vcam-service.dll"
The path to the actual DLL is based on your own situation.
If you don't need the virtual camera, i.e. unregister it, perform a similar operation.
regsvr32.exe /u /s "\to\path\vcam-service.dll"
Then you can use the vcam driver to output the screen to the virtual camera, this is an example of outputting a 1920x1080 empty screen.
- C++ - ./driver/example/simple.cpp
- Node.js - ./napi/example/simple.js
MIT Copyright (c) 2024 Mr.Panda.