This is not supported via APIs. You could try playing the file while in speaker mode, but I doubt it would be very clear on the other end.
Thank On Thu, May 17, 2012 at 12:21 AM, saran vonteddu <[email protected]>wrote: > Dear *, > > I'm working on an application in which I should be able to > play an audio file while I'm in call. For that I'm using the below code > while I'm in call. > > public void audioPlayer(String path, String fileName){ > MediaPlayer mp = new MediaPlayer(); > try { > mp.setDataSource(path+"/"+filename); > } catch (Exception e) { > e.printStackTrace(); > } > try { > mp.prepare(); > } catch (Exception e) { > e.printStackTrace(); > } > mp.start(); > } > > So far so good, I'm able to play audio file successfully while I'm in > call, but the problem is the other party is not able to listen the audio > which I'm playing. > Are there any other APIs available in android to achieve this so that the > other party can listen the audio cleary which I'm playing. I tried a lot to > get any > solution and I'v been googling for the past one week, but I didnt get any > thing. Please suggest me any solution. > > > thanks in advance. > > > regards, > Saran > > > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

