Table of Contents

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 : IDisposable

Inheritance

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

width int

Frame width in pixels (must be even).

height int

Frame height in pixels.

fps double

Target frame rate (e.g., 30.0).

streamName string

Shared memory stream name. Default matches the virtual camera filter.

context BaseContext

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

long

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

yuy2Data ReadOnlySpan<byte>

Returns

bool

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()