public void PauseRecording() { try { if (mediaRecorder == null) { return; } if (IsRecorderPlaying) { if (timer != null) { timer.Stop(); } IsRecorderPlaying = false; IsRecorderPause = true; mediaRecorder.Pause(); } } catch (System.Exception ex) { } }