Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to play music during calls so that the partner can hear it ? Android

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?

like image 862
Sai Avatar asked May 19 '13 10:05

Sai


People also ask

Can I talk on the phone and listen to music at the same time?

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.


2 Answers

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)

like image 78
Sebastiano Avatar answered Oct 10 '22 18:10

Sebastiano


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.

like image 43
MarsAtomic Avatar answered Oct 10 '22 19:10

MarsAtomic