C# Class Accord.Controls.VideoSourcePlayer

Afficher le fichier Open project: accord-net/framework Class Usage Examples

Private Properties

Свойство Type Description
CheckForCrossThreadAccess void
InitializeComponent void
UpdatePosition void
VideoSourcePlayer_Paint void
VideoSourcePlayer_ParentChanged void
parent_SizeChanged void
videoSource_NewFrame void
videoSource_PlayingFinished void
videoSource_VideoSourceError void

Méthodes publiques

Méthode Description
GetCurrentVideoFrame ( ) : Bitmap

Get clone of current video frame displayed by the control.

SignalToStop ( ) : void

Signal video source to stop.

Use WaitForStop method to wait until video source stops.

Start ( ) : void

Start video source and displaying its frames.

Stop ( ) : void

Stop video source.

The method stops video source by calling its Accord.Video.IVideoSource.Stop method, which abourts internal video source's thread. Use SignalToStop and WaitForStop for more polite video source stopping, which gives a chance for video source to perform proper shut down and clean up.

VideoSourcePlayer ( ) : System

Initializes a new instance of the VideoSourcePlayer class.

WaitForStop ( ) : void

Wait for video source has stopped.

Waits for video source stopping after it was signaled to stop using SignalToStop method. If SignalToStop was not called, then it will be called automatically.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
CheckForCrossThreadAccess ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

UpdatePosition ( ) : void
VideoSourcePlayer_Paint ( object sender, PaintEventArgs e ) : void
VideoSourcePlayer_ParentChanged ( object sender, EventArgs e ) : void
parent_SizeChanged ( object sender, EventArgs e ) : void
videoSource_NewFrame ( object sender, NewFrameEventArgs eventArgs ) : void
videoSource_PlayingFinished ( object sender, ReasonToFinishPlaying reason ) : void
videoSource_VideoSourceError ( object sender, VideoSourceErrorEventArgs eventArgs ) : void

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetCurrentVideoFrame() public méthode

Get clone of current video frame displayed by the control.
public GetCurrentVideoFrame ( ) : Bitmap
Résultat Bitmap

SignalToStop() public méthode

Signal video source to stop.

Use WaitForStop method to wait until video source stops.

public SignalToStop ( ) : void
Résultat void

Start() public méthode

Start video source and displaying its frames.
public Start ( ) : void
Résultat void

Stop() public méthode

Stop video source.

The method stops video source by calling its Accord.Video.IVideoSource.Stop method, which abourts internal video source's thread. Use SignalToStop and WaitForStop for more polite video source stopping, which gives a chance for video source to perform proper shut down and clean up.

public Stop ( ) : void
Résultat void

VideoSourcePlayer() public méthode

Initializes a new instance of the VideoSourcePlayer class.
public VideoSourcePlayer ( ) : System
Résultat System

WaitForStop() public méthode

Wait for video source has stopped.

Waits for video source stopping after it was signaled to stop using SignalToStop method. If SignalToStop was not called, then it will be called automatically.

public WaitForStop ( ) : void
Résultat void