private void stopvideo_Click(object sender, EventArgs e) { if (videoSource != null) { videoSource.Stop(); } }
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(); }
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(); } }
private void button3_Click(object sender, EventArgs e) { baca.Stop(); }