StreamUtil test

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

 



You need to modify the code as below:

- To make it play just once (no loop), you can simply modify the
'flags' parameter of pjmedia_wav_player_port_create() from 0 to
PJMEDIA_FILE_NO_LOOP

- To limit the loop once or more, you should provide a callback
function (see pjmedia_wav_player_set_eof_cb()). Every time EOF
condition reached, the callback function will get called. Do counting
inside it, once the desired loop count reached, return non-PJ_SUCCESS
from the callback.

See pjmedia doc for detail.

If you want the app quit after playing finished, you will have to
manage to quit from streamutil app.


Cheers,
nanang


On 09/04/2008, cingusoft <cingusoft at gmail.com> wrote:
>
>
>
>
> Hi guys
>
> I'm pjsip newbie, i have tested this fabulous library with StreamUtil.c
> example an all work very well.
>
> My question is
>
> The wav file is repited on infinite, have a looping or simillary
>
> How can stop this loop, for example after two loops
>
>
>
> Sorry for my poor English
>
>
>
> Bye
>
>
>
>
>
>
> _______________________________________________
>  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