Пример #1
0
        public WebcamSourceProvider(ILocalizationProvider Loc,
                                    IIconSet Icons,
                                    WebcamModel WebcamModel)
        {
            _loc         = Loc;
            _webcamModel = WebcamModel;
            Icon         = Icons.Webcam;
            Source       = new WebcamVideoItem(WebcamModel);

            Loc.LanguageChanged += L => RaisePropertyChanged(nameof(Name));
        }
Пример #2
0
 public ConsoleLister(WebcamModel Webcam,
                      IAudioSource AudioSource,
                      IPlatformServices PlatformServices,
                      FFmpegWriterProvider FfmpegWriterProvider,
                      SharpAviWriterProvider SharpAviWriterProvider)
 {
     _webcam                 = Webcam;
     _audioSource            = AudioSource;
     _platformServices       = PlatformServices;
     _ffmpegWriterProvider   = FfmpegWriterProvider;
     _sharpAviWriterProvider = SharpAviWriterProvider;
 }
Пример #3
0
        public WebcamPage(WebcamModel WebcamModel,
                          ScreenShotModel ScreenShotModel,
                          IPlatformServices PlatformServices,
                          WebcamOverlaySettings WebcamSettings)
        {
            _webcamModel      = WebcamModel;
            _screenShotModel  = ScreenShotModel;
            _platformServices = PlatformServices;

            _reactor = new WebcamOverlayReactor(WebcamSettings);

            Loaded += OnLoaded;

            InitializeComponent();
        }
Пример #4
0
        public void show_pictureTest()
        {
            PictureBox pic = new PictureBox();

            PixelState.getInstance().set_pictureBox(pic);
            WebcamModel target = new WebcamModel();
            Dictionary <int, string> devices   = new Dictionary <int, string>();
            Dictionary <int, string> solutions = new Dictionary <int, string>();

            devices.Add(1, "");
            solutions.Add(1, "");
            WebcamOptions form = new WebcamOptions(devices, solutions);

            target.show_picture(pic, form);
        }
Пример #5
0
 public RememberByName(Settings Settings,
                       VideoSourcesViewModel VideoSourcesViewModel,
                       VideoWritersViewModel VideoWritersViewModel,
                       AudioSource AudioSource,
                       ScreenShotModel ScreenShotModel,
                       IEnumerable <IVideoSourceProvider> VideoSourceProviders,
                       WebcamModel WebcamModel)
 {
     _settings = Settings;
     _videoSourcesViewModel = VideoSourcesViewModel;
     _videoWritersViewModel = VideoWritersViewModel;
     _audioSource           = AudioSource;
     _screenShotModel       = ScreenShotModel;
     _videoSourceProviders  = VideoSourceProviders;
     _webcamModel           = WebcamModel;
 }
Пример #6
0
        public WebCamWindow(WebcamModel WebcamModel,
                            ScreenShotModel ScreenShotModel,
                            IPlatformServices PlatformServices)
        {
            _webcamModel      = WebcamModel;
            _screenShotModel  = ScreenShotModel;
            _platformServices = PlatformServices;

            InitializeComponent();

            Closing += (S, E) =>
            {
                Hide();

                E.Cancel = true;
            };
        }
Пример #7
0
        public ConsoleManager(Settings Settings,
                              RecordingModel RecordingModel,
                              ScreenShotModel ScreenShotModel,
                              IEnumerable <IVideoSourceProvider> VideoSourceProviders,
                              IPlatformServices PlatformServices,
                              WebcamModel WebcamModel,
                              IMessageProvider MessageProvider)
        {
            _settings             = Settings;
            _recordingModel       = RecordingModel;
            _screenShotModel      = ScreenShotModel;
            _videoSourceProviders = VideoSourceProviders;
            _platformServices     = PlatformServices;
            _webcamModel          = WebcamModel;
            _messageProvider      = MessageProvider;

            // Hide on Full Screen Screenshot doesn't work on Console
            Settings.UI.HideOnFullScreenShot = false;
        }
Пример #8
0
 public WebcamOverlay(WebcamModel WebcamModel, Settings Settings) : base(Settings.WebcamOverlay, true)
 {
     _webcamModel = WebcamModel;
 }
Пример #9
0
 public WebcamOverlay(WebcamModel WebcamModel, Settings Settings) : base(true)
 {
     _webcamModel = WebcamModel;
     _settings    = Settings.WebcamOverlay;
 }
Пример #10
0
        public WebcamVideoItem(WebcamModel WebcamModel)
        {
            _webcamModel = WebcamModel;

            _webcamModel.PropertyChanged += (S, E) => RaisePropertyChanged(nameof(Name));
        }
Пример #11
0
        public void stop_captureTest()
        {
            WebcamModel target = new WebcamModel(); // TODO: Passenden Wert initialisieren

            target.stop_capture();
        }