Xeno-rat
|
Video source interface. More...
Public Member Functions | |
void | Start () |
Start video source. | |
void | SignalToStop () |
Signal video source to stop its work. | |
void | WaitForStop () |
Wait for video source has stopped. | |
void | Stop () |
Stop video source. | |
Properties | |
string | Source [get] |
Video source. | |
int | FramesReceived [get] |
Received frames count. | |
long | BytesReceived [get] |
Received bytes count. | |
bool | IsRunning [get] |
State of the video source. | |
Events | |
NewFrameEventHandler | NewFrame |
New frame event. | |
VideoSourceErrorEventHandler | VideoSourceError |
Video source error event. | |
PlayingFinishedEventHandler | PlayingFinished |
Video playing finished event. | |
Video source interface.
The interface describes common methods for different type of video sources.
void AForge.Video.IVideoSource.SignalToStop | ( | ) |
Signal video source to stop its work.
Signals video source to stop its background thread, stop to provide new frames and free resources.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
void AForge.Video.IVideoSource.Start | ( | ) |
Start video source.
Starts video source and return execution to caller. Video source object creates background thread and notifies about new frames with the help of NewFrame event.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
void AForge.Video.IVideoSource.Stop | ( | ) |
Stop video source.
Stops video source aborting its thread.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
void AForge.Video.IVideoSource.WaitForStop | ( | ) |
Wait for video source has stopped.
Waits for video source stopping after it was signalled to stop using SignalToStop method.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
|
get |
Received bytes count.
Number of bytes the video source provided from the moment of the last access to the property.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
|
get |
Received frames count.
Number of frames the video source provided from the moment of the last access to the property.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
|
get |
State of the video source.
Current state of video source object - running or not.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
|
get |
Video source.
The meaning of the property depends on particular video source. Depending on video source it may be a file name, URL or any other string describing the video source.
Implemented in AForge.Video.DirectShow.VideoCaptureDevice.
NewFrameEventHandler AForge.Video.IVideoSource.NewFrame |
New frame event.
This event is used to notify clients about new available video frame.
<note>Since video source may have multiple clients, each client is responsible for making a copy (cloning) of the passed video frame, but video source is responsible for disposing its own original copy after notifying of clients.</note>
PlayingFinishedEventHandler AForge.Video.IVideoSource.PlayingFinished |
Video playing finished event.
This event is used to notify clients that the video playing has finished.
VideoSourceErrorEventHandler AForge.Video.IVideoSource.VideoSourceError |
Video source error event.
This event is used to notify clients about any type of errors occurred in video source object, for example internal exceptions.