问题描述
我只想录制呼叫(但只能录制我的声音或安装了我的应用的人),但 VOICE_UPLINK 不能正常工作,但是MediaRecorder.AudioSource.MIC可以正常工作并录制两个呼叫者的音频和收件人
I want to record calls only (But only my voice or the person who has my app installed) but VOICE_UPLINK is not working , but MediaRecorder.AudioSource.MIC is working and recording audio of both caller and recipient
我已经尝试过:-来源为:-MIC , VOICE_CALL , DEFAULT , VOICE_COMMUNICATION , CAMCORDER , UPLINK , DOWNLINK
I've tried :-sources as :- MIC , VOICE_CALL , DEFAULT , VOICE_COMMUNICATION , CAMCORDER , UPLINK , DOWNLINK
但是上行链路和下行链路不起作用
当我使用上行链路或下行链路时,我的应用程序行为不正常;而当我使用其他来源时,我的应用程序运行正常
When I use Uplink or downlink my app misbehave while When I use other sources my app works fine
推荐答案
这是由于权限
仅授予系统应用程序,因为 VOICE_UPLINK 和 VOICE_DOWNLINK 要求具有此权限,第三方应用程序未获得此权限
Which is only granted to system apps , as VOICE_UPLINK and VOICE_DOWNLINK requires this permission 3rd party applications are not granted this permission
它还取决于制造商,这可能会限制用户记录呼叫.可以通过硬件或软件来完成.
这是我认为这不起作用的两个可能原因
These are the two possible reasons I think why This ain't working
这篇关于如何使用MediaRecorder.AudioSource.VOICE_UPLINK记录呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!