Interface IVideoCaptureSource2
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
CaptureMode
Gets or sets preferred capture mode. If not specified then default capture mode is used.
VideoCaptureMode CaptureMode { get; set; }
Property Value
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
CurrentStat
Gets current capture statistics
VideoCaptureStat CurrentStat { get; }
Property Value
DeviceId
Gets or sets capture device id
string DeviceId { get; set; }
Property Value
Renderer
Gets or sets optional capture preview renderer
IVideoRenderer Renderer { get; set; }
Property Value
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
Methods
TakeSnapshot()
Takes an image snapshot and returns its stream
Task<Stream> TakeSnapshot()