We have implemented pjsua2 library for calls. We are facing some issue in playing audio during outgoing calls. We have also implemented call recording functionality which is working fine. I am not sure how to play a wav file during call which can be heard by receiver too.
We have checked pjsua2 document which is not that up to mark.
getPlayer().createPlayer("file:///android_asset/1540Hz14s8000.wav");
audioMedia.startTransmit(getPlayer());
getCap_med().startTransmit(getPlayer());
public static AudioMediaPlayer getPlayer() {
if (player == null) {
player = new AudioMediaPlayer();
}
return player;
}
public static AudioMedia getCap_med() throws Exception {
if (cap_med == null) {
cap_med = MyApp.ep.audDevManager().getCaptureDevMedia();
}
return cap_med;
}
Please help me, I have already spend almost a week.