MediaRecorder.pause() in android
Asked Answered
F

3

6

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

Fatal answered 26/8, 2016 at 9:42 Comment(0)
D
5

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.

Dulin answered 26/8, 2016 at 9:59 Comment(0)
D
0

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.

Dryasdust answered 26/8, 2016 at 10:7 Comment(0)
R
0

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

Ruthful answered 14/9, 2019 at 9:23 Comment(1)
Try to explain what you are suggesting and how to use that. meta.stackexchange.com/questions/8231/…Enliven

© 2022 - 2024 — McMap. All rights reserved.