示例#1
0
 public void StartRecord(string rtsp)
 {
     _rtspPath             = rtsp;
     _recieveDataCallback += RecieveDataCallback;
     _errorCallback       += ErrorCallback;
     RtspRecorder.StartCallbackRecord(_rtspPath, 10000, _recieveDataCallback, null, _errorCallback);
 }
示例#2
0
 private void RecordStreamButton_OnClick(object sender, RoutedEventArgs e)
 {
     _rtspPath             = PathRecordTextBox.Text;
     _recieveDataCallback += RecieveDataCallback;
     _errorCallback       += ErrorCallback;
     RtspRecorder.StartCallbackRecord(_rtspPath, 0, _recieveDataCallback, null, _errorCallback);
     //RtspRecorder.StartFileRecord(_rtspPath, "D:\\TestVideo\\Record\\test.mkv", 15000, _errorCallback);
 }