Xeno-rat
Loading...
Searching...
No Matches
AForge.Video Namespace Reference

Namespaces

namespace  DirectShow
 

Classes

interface  IVideoSource
 Video source interface. More...
 
class  NewFrameEventArgs
 Arguments for new frame event from video source. More...
 
class  VideoSourceErrorEventArgs
 Arguments for video source error event from video source. More...
 

Enumerations

enum  ReasonToFinishPlaying { EndOfStreamReached , StoppedByUser , DeviceLost , VideoSourceError }
 Reason of finishing video playing. More...
 

Functions

delegate void NewFrameEventHandler (object sender, NewFrameEventArgs eventArgs)
 Delegate for new frame event handler.
 
delegate void VideoSourceErrorEventHandler (object sender, VideoSourceErrorEventArgs eventArgs)
 Delegate for video source error event handler.
 
delegate void PlayingFinishedEventHandler (object sender, ReasonToFinishPlaying reason)
 Delegate for playing finished event handler.
 

Enumeration Type Documentation

◆ ReasonToFinishPlaying

Reason of finishing video playing.

When video source class fire the IVideoSource.PlayingFinished event, they need to specify reason of finishing video playing. For example, it may be end of stream reached.

Enumerator
EndOfStreamReached 

Video playing has finished because it end was reached.

StoppedByUser 

Video playing has finished because it was stopped by user.

DeviceLost 

Video playing has finished because the device was lost (unplugged).

VideoSourceError 

Video playing has finished because of some error happened the video source (camera, stream, file, etc.). A error reporting event usually is fired to provide error information.

Function Documentation

◆ NewFrameEventHandler()

delegate void AForge.Video.NewFrameEventHandler ( object sender,
NewFrameEventArgs eventArgs )

Delegate for new frame event handler.

Parameters
senderSender object.
eventArgsEvent arguments.

◆ PlayingFinishedEventHandler()

delegate void AForge.Video.PlayingFinishedEventHandler ( object sender,
ReasonToFinishPlaying reason )

Delegate for playing finished event handler.

Parameters
senderSender object.
reasonReason of finishing video playing.

◆ VideoSourceErrorEventHandler()

delegate void AForge.Video.VideoSourceErrorEventHandler ( object sender,
VideoSourceErrorEventArgs eventArgs )

Delegate for video source error event handler.

Parameters
senderSender object.
eventArgsEvent arguments.