Playing an pre-recorded audio file to somebody over a call

独自空忆成欢 提交于 2019-11-28 10:53:31

问题


I understand that even though the AudioManager.STREAM_VOICE_CALL is available in the SDK for android, it is not actually been used to play a pre-recorded audio file, or atleast that is what i have heard/seen on the internet. My Question is this, if this is truly the way it is, how is prankdial accomplishing this?

Many similar questions have been asked but they all seem really old, so i was wondering if anybody has gained any more insight about this.


回答1:


My Question is this, if this is truly the way it is, how is prankdial accomplishing this?

It is impossible. Android applications do not have access to the in-call audio stream. AudioManager.STREAM_VOICE_CALL is for volume control.



来源:https://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call

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