Click here to Skip to main content
15,882,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using MediaRecorder to record audio in Xamarin Android. I want to add Pause and Resume functionality to this. MediaRecorder does not have built in methods to Pause and Resume the recording. How can I accomplish this? Do I need to store separate audio files when Paused and merge them in a single audio file? If yes, then how can I implement that in Xamarin Android?

Thanks in advance.

What I have tried:

I have tried to use both AudioRecord class (Low level API) and MediaRecorder class (High level API). None of them has built-in methods to Pause and Resume the recording.
Updated 12-Sep-16 1:18am

1 solution

At api 24 it does MediaRecorder | Android Developers[^] not sure if that helps....

You would have to stop and start and merge the files, here is an implementation of just that for android GitHub - lassana/continuous-audiorecorder: Implementation of the missing feature in Android SDK: audio recorder with a pause.[^]

I'm sorry I can't be specific with Xamarin as I have no experience.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900