Class VirtualVideoWriter
- Namespace
- VisioForge.Core.VirtualCamera.Push
- Assembly
- VisioForge.Core.dll
Pushes raw video frames to the VisioForge Virtual Camera via shared memory, bypassing DirectShow completely. The virtual camera source filter reads these frames and presents them to consumer applications (Zoom, Teams, OBS, etc.).
public sealed class VirtualVideoWriter : IDisposableInheritance
Implements
Inherited Members
Constructors
VirtualVideoWriter(int, int, double, string, BaseContext)
Creates a new virtual video writer.
public VirtualVideoWriter(int width, int height, double fps, string streamName, BaseContext context)Parameters
widthint-
Frame width in pixels (must be even).
heightint-
Frame height in pixels.
fpsdouble-
Target frame rate (e.g., 30.0).
streamNamestring-
Shared memory stream name. Default matches the virtual camera filter.
contextBaseContext-
SDK logging context. May be null (falls back to Trace).
Properties
FrameCount
Number of frames successfully pushed since Start().
public long FrameCount { get; }Property Value
Methods
Dispose()
Releases all resources used by the VisioForge.Core.VirtualCamera.Push.VirtualVideoWriter, sending an EOS signal to the virtual camera before closing shared memory.
public void Dispose()PushFrame(ReadOnlySpan<byte>)
Pushes a YUY2 frame. Data must be exactly width * height * 2 bytes.
public bool PushFrame(ReadOnlySpan<byte> yuy2Data)Parameters
yuy2DataReadOnlySpan<byte>
Returns
Start()
Opens shared memory and signals that streaming is starting. Must be called before PushFrame.
public void Start()Stop()
Signals end of stream and stops writing.
public void Stop()