user5184542
user5184542

Reputation: 83

MediaRecorder.pause() in android

the pause method added to MediaRecorder in api 24

is there any way to use this in a older api?

here is android studio suggest but i want use it in older devices

Upvotes: 6

Views: 4927

Answers (3)

Harsh Pyati
Harsh Pyati

Reputation: 1

Check out this library. I have personally used this to add pause and resume functionalities to my android app. It supports all API levels.

Upvotes: 0

Sergio
Sergio

Reputation: 8209

On older platforms there is no MediaRecorder.pause(). The only option is to record few separate files and then concatenate it by yourself with any available library (e.g. try FFmpeg-based). But note that there may be roughness due recorder may insert empty frames at the begin / end of files and concatenated media may contain artifacts like blinking, cracks so on.

Upvotes: 0

Shridutt Kothari
Shridutt Kothari

Reputation: 7394

Simple answer for your question is NO YOU CAN'T

Once you are recording the only possible actions are stop and reset.

So try to save your Call to SDCard after you Stop , and then again start Fresh Record and Stop it. Finally Combine both Audio File into one Audio file.

Record the audio as .wav file and Combine using this way.

Upvotes: 5

Related Questions