PJSIP 2.1 for Android without OpenSL

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

 



Thanks Regis - I guess the multiply defined JNI_OnLoad issue is perhaps something to with pjsua then. I'll have to dig deeper.

re. CSipSimple/1.x I looked in the config_site.h and it had something like:

    #define PJMEDIA_AUDIO_DEV_HAS_ANDROID 1

whereas the config_site_sample.h for the 2.1 release has:

   #define PJMEDIA_AUDIO_DEV_HAS_OPENSL               1
    #define PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI  0

so I assumed it was using an earlier release. My mistake - apologies :(.


From: pjsip [mailto:pjsip-bounces@xxxxxxxxxxxxxxx] On Behalf Of R?gis Montoya
Sent: 23 May 2013 10:49
To: pjsip at lists.pjsip.org
Subject: Re: PJSIP 2.1 for Android without OpenSL



I've tried enabling PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI in config_site.h but end up with multiple JNI_OnLoad definitions when I compile. And CSipSimple (which apparently does work on earlier versions of Android) seems to be using a 1.x version of pjsip.


CSipSimple uses current trunk version of pjsip (so 2.x) (there is only few commits of latests days that are not yet integrated). Where did you see it uses 1.x? (Maybe I forgot to udpdate some wiki page?). There is the video feature... so you could have deduced it's not 1.x ;).

Else, yes, CSipSimple works from 1.6 (and actually could run from 1.5 if the compatibility library from google was supporting android 1.5).

The JNI and the OpenSL-ES implementation can coexists if you split things when you build and load the audio device implementation from your app / native code specific to your app instead of melding everything in a single dynamic library. Pjsip is well designed to support that dynamically... you can just use this fact.
BTW, if you want to support both it's mandatory to not have your main pjsip dyn lib linked to opensl-es lib else it will simply not load on older android versions.
Unlike on the monolitic iOS, android is made to allow plugins and dynamic detection of things. And pjsip also allows to dynamically add features (audio devices glue, video devices glue, codecs etc).



To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 

If you are unable to access the Disclaimer, send a blank e-mail to
firstrandbankdisclaimer at fnb.co.za and we will send you a copy of the Disclaimer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130523/e8bf364c/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