Android - Play beep sound during call

PP
Paresh Prajapati
Fri, Jul 26, 2019 7:33 AM

Hello sir,

I have PJSIP working library in my android project. I can make the calls
and record calls. Now i want to add a beep sound during call to notify the
users that they are being recorded. I have also change audio file format
and sample rate 8000

I have tried to play a wav file using following code,

AudioMediaPlayer player;AudioMedia& play_dev_med =
Endpoint::instance().audDevManager().getPlaybackDevMedia();try {
player.createPlayer("file.wav");
player.startTransmit(play_dev_med);} catch(Error& err) {}

Please help this above code is not playing wav file.

Hello sir, I have PJSIP working library in my android project. I can make the calls and record calls. Now i want to add a beep sound during call to notify the users that they are being recorded. I have also change audio file format and sample rate 8000 I have tried to play a wav file using following code, AudioMediaPlayer player;AudioMedia& play_dev_med = Endpoint::instance().audDevManager().getPlaybackDevMedia();try { player.createPlayer("file.wav"); player.startTransmit(play_dev_med);} catch(Error& err) {} Please help this above code is not playing wav file.