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(); }
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(); }