My problem is that I have to play a music file on Voice call stream in android MediaPlayer mySound When I run the code for Music stream it is working correctly
MediaPlayer.create(getBaseContext(), R.raw.a );
mySound.setAudioStreamType(AudioManager.STREAM_MUSIC);
mySound.start();
But when I change the stream then the audio does not play.