示例#1
0
 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();
 }
示例#2
0
        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);
            }
        }
示例#3
0
 public void ShootPhoto(ShootingSettings settings)
 {
     shootingPhotoRequestQueue.Enqueue(settings);
 }