Exemplo n.º 1
0
 private void stopvideo_Click(object sender, EventArgs e)
 {
     if (videoSource != null)
     {
         videoSource.Stop();
     }
 }
Exemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (baca != null && baca.IsRunning)
     {
         baca.Stop();
     }
     webCams          = new FilterInfoCollection(FilterCategory.VideoInputDevice);
     kamera           = new VideoCaptureDevice(webCams[0].MonikerString);
     kamera.NewFrame += new NewFrameEventHandler(kamera_ProsesFrame);
     kamera.Start();
 }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.button1.Text == "Start")
            {
                string filePath = @"C:\Users\Hot Dog\Desktop\Rehabot_영상\팔꿈치_재활운동용.mp4";
                _videoFile = new VideoFileSource(filePath);

                this.videoSourcePlayer1.VideoSource = _videoFile;
                this.videoSourcePlayer1.Start();

                this.button1.Text = "Stop";
            }
            else
            {
                this.button1.Text = "Start";
                _videoFile.Stop();
            }
        }
Exemplo n.º 4
0
 private void button3_Click(object sender, EventArgs e)
 {
     baca.Stop();
 }