Android - Play beep sound during call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux