/// <summary> /// Starts the <see cref="LifeJob"/> with the first found webcam. /// </summary> private void InitializeJob() { // Starts a new job for the preview window this.Job = new LiveJob(); // Create a new device source (the first found video and audio devices) DeviceSource = Job.AddDeviceSource( EncoderDevices.FindDevices(EncoderDeviceType.Video)[0], EncoderDevices.FindDevices(EncoderDeviceType.Audio)[0]); // Activate the newly created device source this.Job.ActivateSource(this.DeviceSource); // Apply a typical preset for smooth encoding & playback this.Job.ApplyPreset(LivePresets.VC1256kDSL16x9); }