public void InternalContolTest() { var fileName = GetFileName(nameof(InternalContolTest)); var recorder = new RtspRecorder(rtsp, fileName); ThreadPool.QueueUserWorkItem(_ => recorder.Start()); Thread.Sleep(5000); recorder.Stop(); Assert.True(File.Exists(fileName)); }
private void StopRecordStreamButton_OnClick(object sender, RoutedEventArgs e) { RtspRecorder.Stop(_rtspPath); if (writer != null) { writer.Close(); if (fsStream != null) { fsStream.Close(); } } }
public void StopRecord(string rtsp) { RtspRecorder.Stop(rtsp); }