Video source to play.

Namespace:  AForge.Controls
Assembly:  AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public IVideoSource VideoSource { get; set; }

Remarks

The property sets the video source to play. After setting the property the Start()()() method should be used to start playing the video source.

Note:Trying to change video source while currently set video source is still playing will generate an exception. Use IsRunning property to check if current video source is still playing or Stop()()() or SignalToStop()()() and WaitForStop()()() methods to stop current video source.

Exceptions

ExceptionCondition
System..::.ExceptionVideo source can not be changed while current video source is still running.

See Also