I'm trying to make and app like Call Cheater(Originally developed for Symbian OS)
Is it possible to play a music during a phone conversation where receiver and caller should hear the same sound or music?
If yes how can I implement this?
Playing music or any other audio while on a phone call is easy: While on an active phone call, tap the Home button to get to the home screen. Open the Music app, find any song or podcast, and press play. Return to the phone call screen by tapping the green titlebar.
You failed to find an app that does this because it is not possible.
The documentation clearly states (here):
Note: You can play back the audio data only to the standard output device. Currently, that is the mobile device speaker or a Bluetooth headset. You cannot play sound files in the conversation audio during a call.
The reason behind this decision has probably something to do with security: there are several scenarios where this capability could be used for cons.
(the OP is highly similar to this, hence I'm basically giving the same answer)
Two answers, both valid, depending on how sloppy you like to be:
1) No, it's not currently possible to inject audio into a phone conversation.
2) Yes, it's possible. It's also an ugly, ugly kludge. Turn on the hands free function of your phone. Create a media player, set the media source, set the volume to 1.0f (highest) and call player.start()
. If the microphone and speakers on the phone are of reasonable quality, the other party to the call will hear the music. He or she will also continue to hear anything you say, as well as ambient and other sounds in your immediate vicinity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With