Changes between Version 38 and Version 39 of Getting-Started/Android


Ignore:
Timestamp:
Jan 27, 2015 9:54:58 AM (9 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Android

    v38 v39  
    4848 * for more info, run {{{./configure-android --help}}} 
    4949 * other customizations are similar to what is explained in [wiki:Getting-Started/Autoconf Building with GNU] page. 
     50 
     51== Video Support (in progress) == 
     52 
     53=== Features === 
     54Video on Android will be supported since PJSIP version 2.4. It has the following features: 
     55 - native capture (under development) 
     56 - native OpenGL ES renderer 
     57 - H.263 codec (via ffmpeg library, see below) 
     58 - H.264 codec (via OpenH264 library, see below) 
     59 
     60=== Requirements === 
     61 
     62==== ffmpeg ==== 
     63 
     64       1. Follow the instructions from the web on how to build ffmpeg for android. We followed the instructions provided [http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ here] and successfully built with Android NDK !r10. 
     65       1. Copy all library .so files into your Android application project directory, for example: 
     66{{{ 
     67cp /Users/me/src/ffmpeg-2.5/android/arm/lib/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi 
     68}}} 
     69 
     70==== OpenH264 ==== 
     71 
     72       1. Follow the instructions in ticket #1758 
     73       1. Copy all library .so files into your Android application project directory, for example: 
     74{{{ 
     75cp /Users/me/openh264-1.0.0/android/*.so /Users/me/pjproject-2.0/pjsip-apps/src/swig/java/android/libs/armeabi 
     76}}} 
     77 
     78=== Configuring === 
     79 
     80Sample invocation of ./configure-android: 
     81{{{ 
     82$ ./configure-android --with-ffmpeg=/Users/me/src/ffmpeg-2.5/android/arm --with-openh264=/Users/me/openh264-1.0.0/android 
     83}}} 
     84 
     85Make sure ffmpeg and openh264 are detected by {{{./configure-android}}}: 
     86{{{ 
     87... 
     88Using ffmpeg prefix... /Users/me/src/ffmpeg-2.5/android/arm 
     89checking for pkg-config... pkg-config 
     90checking ffmpeg packages...  libavformat libavcodec libswscale libavutil 
     91... 
     92Using OpenH264 prefix... /Users/me/openh264-1.0.0/android 
     93checking OpenH264 availability... ok 
     94... 
     95}}} 
    5096 
    5197== Setting up the target device ==