PJSUA replay WAV ?

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

 



Hi,

  Seems that I just didn't get correctly the code. Managed to play the file
X times after using the pjsua_player_set_pos after proper sleep time or
after fgets. So basically everything is working like dream now after I got
the idea that the set_pos is used to play the stream "again".

  -Mika

On Wed, Sep 23, 2009 at 5:37 PM, David Clark <vdc1048 at tx.rr.com> wrote:

> 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
>>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090924/93601dde/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