Using opus codec with pjsip

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

 



On 06/03/2013 11:38 AM, sahil jindal wrote:
> I am developing an app in ios using pjsip. I want to know how to use the opus codec as my preferred codec.

if you already have installed the opus codec in your pjsip tree, just add the code below after the pjsua_init() call

        pj_str_t codec_id = pj_str( "opus/48000" );

        if ( pjsua_codec_set_priority( &codec_id, PJMEDIA_CODEC_PRIO_HIGHEST ) != PJ_SUCCESS )
        {
            fprintf(stderr, "Warning: Failed to set opus/48000 codec at highest priority\n" );
        }


> Thanks in advance.
>
>
> _______________________________________________
> 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/20130603/ebec2cc1/attachment-0001.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