Streamutil application on Android

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

 



I found it,
it actually is stated in the code,

pjmedia/src/pjmedia-audiodev/opensl_dev.c
628         /* Create audio recorder
629          * (requires the RECORD_AUDIO permission)
630          */


My device did not have root permission, (I'm running pure NDK without SDK,
so I cannot pass the permission to the application.)
With the emulator, the streamutil do not crash at all.

I gonna use this rtp streamer in a java wrapper, and pass the permission to
it,

yet the another question arises,
what happens if I don't have a java wrapper and need such permission in my
NDK application?

May be I should be asking in some other forum.

Good luck to all,
Saeed


---------- Forwarded message ----------
From: Saeed Abbassi <saeed144@xxxxxxxxx>
Date: 2012/9/5
Subject: Streamutil application on Android
To: pjsip at lists.pjsip.org


Dear all,

In trying to compile and run PJSIP on Android, I have tested streamutil of
./pjsip-apps/bin/samples/arm-unknown-linux-androideabi/streamutil

cross-compiled in linux (using ndk-8) and run on Motorola Defy+

This test application works OK in send-only mode,

 [./streamutil  --local-port=4000
--remote=192.168.0.200:4000--play-file=test1.wav --send-only
]

but in --recv-only it crashes with the following log

[ 13:42:49.525 os_core_unix.c !pjlib 2.0-svn for POSIX initialized
 13:42:49.527   opensl_dev.c  OpenSL sound library initialized
13:42:49.527          pjlib  select() I/O Queue created (0xe04d4)
 13:42:49.529    strm0xe548c  VAD temporarily disabled
13:42:49.529          rtp.c  pjmedia_rtp_session_init: ses=0xecfdc,
default_pt=0, ssrc=0x146630ef
 13:42:49.529          rtp.c  pjmedia_rtp_session_init: ses=0xed5f0,
default_pt=0, ssrc=0x146630ef
13:42:49.529       stream.c  Stream strm0xe548c created
 13:42:49.529   opensl_dev.c  Creating OpenSL stream
13:42:49.551   opensl_dev.c  Recording stream type 1, SDK : 10
 13:42:49.553   opensl_dev.c  Cannot realize recorder : 9
13:42:49.553   opensl_dev.c  Stopping stream
 13:42:49.553   opensl_dev.c  OpenSL stream stopped
13:42:49.553   opensl_dev.c  OpenSL stream destroyed
 [1] + Stopped (signal)        ./streamutil
]

What am I doing wrong?

It also does not work in send-recv or in send-only and without given wave
file.

Thanks for your attention
and bravo for the great project,

Saeed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120905/212d73a5/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