void Configure() { VideoMuxerType muxer; if (Capturer == null) { videowindow.Visible = false; return; } /* We need to use Matroska for live replay and remux when the capture is done */ muxer = settings.EncodingSettings.EncodingProfile.Muxer; if (muxer == VideoMuxerType.Avi || muxer == VideoMuxerType.Mp4) { settings.EncodingSettings.EncodingProfile.Muxer = VideoMuxerType.Matroska; } Capturer.Configure(settings, videowindow.WindowHandle); settings.EncodingSettings.EncodingProfile.Muxer = muxer; delayStart = false; Capturer.Run(); videowindow.MessageVisible = true; }