Class WindowsCameraCapture
Class for capturing video frames from a camera on a Windows computer.
Implements
Inherited Members
Namespace: CameraCapture
Assembly: SipLib.Video.Windows.dll
Syntax
public class WindowsCameraCapture : IVideoCapture
Constructors
WindowsCameraCapture(VideoSourceSettings)
Constructor.
Declaration
public WindowsCameraCapture(VideoSourceSettings videoSourceSettings)
Parameters
| Type | Name | Description |
|---|---|---|
| VideoSourceSettings | videoSourceSettings | Video device and format settings. |
Methods
StartCapture()
Starts capturing video frames.
Declaration
public Task<bool> StartCapture()
Returns
| Type | Description |
|---|---|
| Task<bool> | Returns true if the capture was successfully started, or false if an error occurred. |
StopCapture()
Stops the capture process.
Declaration
public Task StopCapture()
Returns
| Type | Description |
|---|---|
| Task |
Events
FrameBitmapReady
Event that is fired when a full video frame Bitmap object is ready for display.
Declaration
public event FrameBitmapReadyDelegate? FrameBitmapReady
Event Type
| Type | Description |
|---|---|
| FrameBitmapReadyDelegate |
FrameReady
Event that is fired when a full frame has been captured.
Declaration
public event FrameReadyDelegate? FrameReady
Event Type
| Type | Description |
|---|---|
| FrameReadyDelegate |