MediaRecorder - record calls application

眉间皱痕 提交于 2019-11-29 17:46:21

Use mRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);

But as,Call Recording is not legal so many device not support the (MediaRecorder.AudioSource.VOICE_CALL/MediaRecorder.AudioSource.VOICE_DOWNLINK), Will work on some Device.

I have tested it on LG and working fine but not working with Nexus device.

So Instead These use MediaRecorder.AudioSource.MIC which is allowed by all devices.

Again call record functionality, or rather

 mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK);

Is highly a device dependent stuff.

Some device does not allow Uplink, some block Downlink and some don't allow voice call. And yet there are devices that allow All kinds of Audio source.

For example: I use a Moto device which allows Uplink and Downlink. But not both at same time i.e voice call. So either I can record my voice, or senders voice.

You should try on different handset to verify this behaviour

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!