PJSUA replay WAV ?

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

 



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090923/56d07768/attachment.html>


[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