Click or drag to resize
Accord.NET (logo)

VideoCaptureDeviceStop Method

Stop video source.

Namespace:  Accord.Video.DirectShow
Assembly:  Accord.Video.DirectShow (in Accord.Video.DirectShow.dll) Version: 3.8.0
Syntax
public void Stop()
Request Example View Source

Implements

IVideoSourceStop
Remarks

Stops video source aborting its thread.

Note Note
Since the method aborts background thread, its usage is highly not preferred and should be done only if there are no other options. The correct way of stopping camera is signaling it stop and then waiting for background thread's completion.

See Also