I am initiating a voice call from my application. Now i want that when the user on the other side picks up the call, i want to play a recorded audio file.
How to go about this? Please help!
I have found a workaround with this. I play an audio file on device's speakers with full sound when the phone state changes to TelephonyManager.CALL_STATE_OFFHOOK
This ensures that the user on the other side can hear the recording.
In simple and clear words you cant stream any sound on an Incoming call
来源:https://stackoverflow.com/questions/7495506/how-to-play-audio-file-when-call-starts