暂停和恢复录音Android中 [英] Pause and Resume Audio recording in Android

查看:337
本文介绍了暂停和恢复录音Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用MediaRecorder类Android 2.3的音频录制应用程序。我有以下要求:

I am developing an audio recording application in Android 2.3 using MediaRecorder class. I have the following requirement :

  1. 当出现中断,说录制通话内容时期间暂停录制。
  2. 在中断结束,我的录像活动的onResume叫,我必须继续从暂停的点记录。

我找不到任何MediaRecorder API暂停和恢复录制。只有启动()和stop()可供选择。
除了录制前,后中断两个独立的文件,然后再连接在一起成一个文件,有没有实现这一目标?
任何其他方式 任何帮助/建议,将大大AP preciated。

I could not find any MediaRecorder api to pause and resume recording . Only start() and stop() are available.
Apart from recording two separate files before and after interruption and then joining then together into one file ,is there any other way to achieve this ?
Any help/suggestion would be greatly appreciated .

Sneha约翰。

推荐答案

该链接可能对你有用。

https://github.com/lassana/continuous-audiorecorder

这篇关于暂停和恢复录音Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆