Re: Android: Yes! Audio calls work with pjsua2, but can't do video

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

 



Hi Oren, thank you for the quick reply. Yes, since I'm developing an Android 6.0+ app, I tried (in MainActivity.onCreate()):

ActivityCompat.requestPermissions(this, new String[]{
        Manifest.permission.RECORD_AUDIO,
        Manifest.permission.CAMERA
}, 1);
I think my issue might be related to a wrong version of the h264 library - I'm rebuilding the world right now and making sure that I didn't copy binaries for the wrong architecture (armeabi vs arm64-v8a). I did a lot of flailing around in my initial build attempts, building multiple times with a lot of different flags and defines, and I definitely had multiple versions of shared object libraries in play.

-Caleb

On 9/11/17 10:19 AM, Oren Barash wrote:
Hi,

From you log, it seems there is no cap_dev.
Did you  asked for permission to use the camera ?

The following is logged even before you try to set the orientation :
09-10 20:51:31.113 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.112    pjsua_vid.c  ......Video channel update..
09-10 20:51:31.122 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.121 vstenc0x75abde  .......Encoder stream started
09-10 20:51:31.122 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.122 vstdec0x75abde  .......Decoder stream started
09-10 20:51:31.123 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.123    pjsua_vid.c  .......Setting up RX..
09-10 20:51:31.124 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.124    pjsua_vid.c  ........Creating video window: type=stream, cap_id=-1, rend_id=0
09-10 20:51:31.125 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.124     vid_port.c  .........Opening device OpenGL renderer [OpenGL] for render: format=I420, size=656x656 @22:1 fps
09-10 20:51:31.126 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.125 android_opengl  .........Re-initializing OpenGL due to format change
09-10 20:51:31.127 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.126 android_opengl  .........Android OpenGL ES renderer successfully created
09-10 20:51:31.127 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.127     vid_port.c  .........Device OpenGL renderer [OpenGL] opened: format=I420, size=656x656 @22:1 fps
09-10 20:51:31.128 8087-8134/org.pjsip.pjsua2.app I/System.out: 20:51:31.128    pjsua_vid.c  .........stream window id 0 created for cap_dev=-1 rend_dev=0


Best Regards.



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
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