예제 #1
0
        public FrmVideoCapture(string serverAddress, int timerInterval)
        {
            InitializeComponent();

            _serverAddress = serverAddress;

            _timerInterval = timerInterval;

            // initialize the webcam capture obj
            _webcamCapture = new WebcamCapture(_timerInterval, this.Handle.ToInt32());
            _audioCapture = new AudioCapture(new AudioCapture.AudioEventHandler(this.AudioSoundCaptured));

            // initialize the image capture size
            _webcamCapture.ImageHeight = pbCapture.Height;
            _webcamCapture.ImageWidth = pbCapture.Width;

            // bind the image captured event
            _webcamCapture.ImageCaptured += new WebcamCapture.WebCamEventHandler(this.WebCamImageCaptured);

            InitializeProxy();

            StartVideoChat();
        }
예제 #2
0
 public AudioCapture(AudioCapture.AudioEventHandler handler)
 {
     _soundCaptured += handler;
 }