public bool StopRecording() { bool stopped = _recordingConfig.StopRecordingTimeoutMilliseconds > 0 ? _streamer.StopRecording(TimeSpan.FromMilliseconds(_recordingConfig.StopRecordingTimeoutMilliseconds)) : _streamer.StopRecording(TimeSpan.Zero); if (stopped) { RecordingStopped?.Invoke(this, EventArgs.Empty); } return(stopped); }
public bool StopRecording() { Log?.Invoke(this, new Core.LogMessage(Core.LogLevel.Info, LogTags.Recording, "Stopping recording...")); bool stopped = _recordingConfig.StopRecordingTimeoutMilliseconds > 0 ? _streamer.StopRecording(TimeSpan.FromMilliseconds(_recordingConfig.StopRecordingTimeoutMilliseconds)) : _streamer.StopRecording(TimeSpan.Zero); if (stopped) { RecordingStopped?.Invoke(this, EventArgs.Empty); Log?.Invoke(this, new Core.LogMessage(Core.LogLevel.Info, LogTags.Recording, "Recording stopped")); } return(stopped); }