Table of Contents

Interface IVideoCaptureSource2

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Latest interface for video capture sources. Extends IMediaSource with video specific settings. Obsoletes older IVideoCaptureSource interface.

public interface IVideoCaptureSource2 : IMediaSource, IReferenceable, IDisposable
Inherited Members

Properties

CameraControl

Gets camera control if available, null otherwise

ICameraControl CameraControl { get; }

Property Value

ICameraControl

CaptureMode

Gets or sets preferred capture mode. If not specified then default capture mode is used.

VideoCaptureMode CaptureMode { get; set; }

Property Value

VideoCaptureMode

CaptureParameters

Gets or sets additional and optional video capture parameters. Can only be set if a source object is not opened yet.

VideoCaptureParameters CaptureParameters { get; set; }

Property Value

VideoCaptureParameters

CurrentStat

Gets current capture statistics

VideoCaptureStat CurrentStat { get; }

Property Value

VideoCaptureStat

DeviceId

Gets or sets capture device id

string DeviceId { get; set; }

Property Value

string

Renderer

Gets or sets optional capture preview renderer

IVideoRenderer Renderer { get; set; }

Property Value

IVideoRenderer

Rotation

Gets or sets camera rotation in degrees. Must be a multiple of 90. It is not supported by all platforms.

int Rotation { get; set; }

Property Value

int

Methods

TakeSnapshot()

Takes an image snapshot and returns its stream

Task<Stream> TakeSnapshot()

Returns

Task<Stream>

Image data stream