Click or drag to resize
Accord.NET (logo)

VideoSourcePlayerVideoSource Property

Video source to play.

Namespace:  Accord.Controls
Assembly:  Accord.Controls.Imaging (in Accord.Controls.Imaging.dll) Version: 3.8.0
Syntax
[BrowsableAttribute(false)]
public IVideoSource VideoSource { get; set; }
Request Example View Source

Property Value

Type: IVideoSource
Exceptions
ExceptionCondition
ExceptionVideo source can not be changed while current video source is still running.
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 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.

See Also