开发者

Pause and resume while recording audio

开发者 https://www.devze.com 2023-03-04 02:37 出处:网络
In my app, I record voice and play it successful开发者_JAVA技巧ly. I need to pause the recording and the resume on button clicks. Any suggestions.Can\'t do this with MediaRecorder, as far as I know. Y

In my app, I record voice and play it successful开发者_JAVA技巧ly. I need to pause the recording and the resume on button clicks. Any suggestions.


Can't do this with MediaRecorder, as far as I know. You'll just have to resume to a new file. If using Audio Recorder and streaming to a wave file, you can just open back the same file and seek to the end. Don't forget to update the header when you close the file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号