Ejemplo n.º 1
0
        public ScreenCastStreamerDevice(FFmpegStreamer streamer, IScreenCastStreamerConfiguration configuration)
        {
            _config          = configuration;
            _recordingConfig = new VideoStreamerRecordingConfiguration(configuration);

            _streamer = streamer;
            _streamer.ProcessExited += (_, e) => ConnectionError?.Invoke(this, new ConnectionException("Screencast process exited."));

            Code = DeviceCode.Create(this, DeviceType.Streaming.SCREENCAST)
                   .RunsOnMainThread(false)
                   .ConnectionType(DeviceConnectionType.Process)
                   .Build();
        }
Ejemplo n.º 2
0
        public VideoStreamerDevice(FFmpegStreamer streamer, IVideoStreamerConfiguration configuration)
        {
            _config          = configuration;
            _recordingConfig = new VideoStreamerRecordingConfiguration(configuration);

            _streamer = streamer;
            _streamer.ProcessExited += (_, __) => ConnectionError?.Invoke(this, new ConnectionException("Webcam video process exited."));

            Code = DeviceCode.Create(this, DeviceType.Streaming.WEBCAM_VIDEO)
                   .RunsOnMainThread(false)
                   .ConnectionType(DeviceConnectionType.Process)
                   .Build();
        }