PJSUA replay WAV ?

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

 



Ok well the question is on the second attempt what happens?  What 
kind of error code do you get?


At 05:17 AM 9/23/2009, Mika Saari wrote:
>Hi,
>
>   What is the correct way to replay the WAV file (no looping wav 
> file) in simple_pjsua.c (code below in on_call_media_state), the 
> WAV is played fluently when the other end answers the call but can 
> not get to play the WAV file second time.
>
>     play_options |= PJMEDIA_FILE_NO_LOOP;
>     status = pjsua_player_create(&file, play_options, &player_id);
>     if(status != PJ_SUCCESS)
>         return;
>     status = 
> pjsua_conf_connect(pjsua_player_get_conf_port(player_id), ci.conf_slot);
>
>     pjsua_player_set_pos(player_id, 0);
>
>   Thanks a lot,
>     -Mika
>_______________________________________________
>Visit our blog: http://blog.pjsip.org
>
>pjsip mailing list
>pjsip at lists.pjsip.org
>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