Table of Contents

Class VideoPlayer

Namespace
Bonsai.Vision.Design
Assembly
Bonsai.Vision.Design.dll

Represents a graphics accelerated video player control.

public class VideoPlayer : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance
VideoPlayer
Implements
Inherited Members

Constructors

VideoPlayer()

Initializes a new instance of the VideoPlayer class.

Properties

Canvas

Gets the graphics canvas used to render video frames.

FrameCount

Gets or sets the number of frames in the video.

Loop

Gets or sets a value indicating whether the video should loop when the end of the file is reached.

PlaybackRate

Gets or sets the speed, in frames per second, at which to play images from the video.

Playing

Gets or sets a value specifying whether the video is playing.

Methods

Dispose(bool)

Clean up any resources being used.

OnLoad(EventArgs)

Raises the Load event.

OnPlaybackRateChanged(EventArgs)

Raises the PlaybackRateChanged event.

OnPlayingChanged(EventArgs)

Raises the PlayingChanged event.

OnSeek(SeekEventArgs)

Raises the Seek event.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

Update(IplImage, int)

Updates the video player control with the specified frame.

Events

LoopChanged

Occurs when the Loop property value changes.

PlaybackRateChanged

Occurs when the PlaybackRate property value changes.

PlayingChanged

Occurs when the Playing property value changes.

Seek

Occurs when the user moves the video seek bar.