www.pudn.com > motion_src.zip > IVideoSource.cs
namespace videosource
{
using System;
///
/// IVideoSource interface
///
public interface IVideoSource
{
///
/// New frame event - notify client about the new frame
///
event CameraEventHandler NewFrame;
///
/// Video source property
///
string VideoSource{get; set;}
///
/// Login property
///
string Login{get; set;}
///
/// Password property
///
string Password{get; set;}
///
/// FramesReceived property
/// get number of frames the video source received from the last
/// access to the property
///
int FramesReceived{get;}
///
/// BytesReceived property
/// get number of bytes the video source received from the last
/// access to the property
///
int BytesReceived{get;}
///
/// UserData property
/// allows to associate user data with an object
///
object UserData{get; set;}
///
/// Get state of video source
///
bool Running{get;}
///
/// Start receiving video frames
///
void Start();
///
/// Stop receiving video frames
///
void SignalToStop();
///
/// Wait for stop
///
void WaitForStop();
///
/// Stop work
///
void Stop();
}
}