Table of Contents

Class VideoCaptureParameters

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Defines additional and optional video capture initialization parameters which can only be set before a capture starts.

public class VideoCaptureParameters
Inheritance
VideoCaptureParameters
Inherited Members

Constructors

VideoCaptureParameters()

public VideoCaptureParameters()

Properties

CaptureTimeout

Gets or sets capture timeout after which capture source fails. By default DefaultCaptureTimeout is used.

public TimeSpan CaptureTimeout { get; set; }

Property Value

TimeSpan

CleanupOnStop

Gets or sets whether to cleanup video renderer on stop. By default it's true and video renderer window is filled with black color on stop. Set to false to keep last rendered image intact. Only makes sense if video renderer has been set, otherwise has no effect.

public bool CleanupOnStop { get; set; }

Property Value

bool

DefaultCaptureTimeout

Gets or sets default capture timeout after which capture source fails.

public static TimeSpan DefaultCaptureTimeout { get; set; }

Property Value

TimeSpan

DefaultEnableDeviceRecovery

Gets or sets whether automatic device recovery logic is enabled by default. Disabled by default.

public static bool DefaultEnableDeviceRecovery { get; set; }

Property Value

bool

DefaultQuickOpen

Gets or sets whether source starts as quickly as possible by default. If the property is true then a source reports Opened state without waiting for the first actual captured frame. Substitute silent audio samples are pushed until an actual sample received from a device. If the property is false then a source waits for the first frame from a device and only then reports Opened state. It should be set to true only when EnableDeviceRecovery is true. False by default, i.e. capture source waits for the first frame from a device.

public static bool DefaultQuickOpen { get; set; }

Property Value

bool

EnableDeviceRecovery

Gets or sets whether automatic device recovery logic is enabled. By default DefaultEnableDeviceRecovery is used.

public bool EnableDeviceRecovery { get; set; }

Property Value

bool

QuickOpen

Gets or sets whether source starts as quickly as possible. If the property is true then a source reports Opened state without waiting for the first actual captured frame. Substitute silent audio samples are pushed until an actual sample received from a device. If the property is false then a source waits for the first frame from a device and only then reports Opened state. It should be set to true only when EnableDeviceRecovery is true. By default DefaultQuickOpen is used.

public bool QuickOpen { get; set; }

Property Value

bool