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
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
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.
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.
Check out this library. I have personally used this to add pause and resume functionalities to my android app. It supports all API levels.
© 2022 - 2024 — McMap. All rights reserved.