public void StartShootVideo(ShootingSettings settings) { var frameSize = videoSourse.VideoCapabilities[0].FrameSize; videoWriter.FrameRate = settings.FrameRate; videoWriter.Open(settings.SavingPath, frameSize.Width, frameSize.Height); videoSourse.Start(); }
private void OnStartStopButtonClick(object sender, RoutedEventArgs e) { if (webCamera.CameraIsOn) { webCamera.StopShootVideo(); } else { var savingPath = GetSavingPath(); var shootingSettings = new ShootingSettings() { SavingPath = savingPath, FrameRate = 15 }; webCamera.StartShootVideo(shootingSettings); } }
public void ShootPhoto(ShootingSettings settings) { shootingPhotoRequestQueue.Enqueue(settings); }