Example #1
0
        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));
        }
Example #2
0
 private void StopRecordStreamButton_OnClick(object sender, RoutedEventArgs e)
 {
     RtspRecorder.Stop(_rtspPath);
     if (writer != null)
     {
         writer.Close();
         if (fsStream != null)
         {
             fsStream.Close();
         }
     }
 }
Example #3
0
 public void StopRecord(string rtsp)
 {
     RtspRecorder.Stop(rtsp);
 }