Objective
Suddenly want to full vlc-android, and then the next play to see, here to record points encountered problems.
StatementWelcome reprint, but please keep the original source of the article:)Blog Park: http://www.cnblogs.comfarmer Uncle: http://over140.cnblogs.com
Body
The vlc-android version of this article is: 2.2.0-pre1 Weatherwax
Generally according to the official website to the line (https://wiki.videolan.org/AndroidCompile), the following are several problems encountered:
1. Environment variable Configuration
Export android_ndk=/users/nmbb/android/android-ndk-r9d
Export ANDROID_SDK=/USERS/NMBB/ANDROID/ANDROID-SDK-MACOSX
Export path=PATH: Android_sdk/platform-tools: $ANDROID _sdk/tools
Export android_abi=armeabi-v7a
2. Compilation error
If you encounter sed:re Error:illegal byte sequence, add export lang=c.
3. Do not compile jar and apk
Comment out the following three lines of makefile:
# git rev-parse--short HEAD > $ (SRC)/assets/revision.txt
# ./gen-env.sh $ (SRC)
#(VEbsed (SRC) && ant(ANT Opts(Ant_target)
4, less iomx-jbmr2.so and iomx-kk.so
Makefile the following line of explanation
Libvlc_libs + = Libiomx-kk LIBIOMX-JBMR2
But note:
# The following IOMX Libs is used for DEBUG only.
# (after Android Jelly beans, we prefer to use MEDIACODEC instead of IOMX)
5. Let VLC show the buffering progress
5.1 The following line of the annotation EventHandler:
public static final int mediaplayerbuffering = 0x103;
5.2 Modifythe jni/libvlcjni.c, add the following line 389 lines:
Static const libvlc_event_type_t mp_events[] = {
Libvlc_mediaplayerplaying,
Libvlc_mediaplayerpaused,
Libvlc_mediaplayerendreached,
Libvlc_mediaplayerstopped,
Libvlc_mediaplayervout,
Libvlc_mediaplayerpositionchanged,
Libvlc_mediaplayertimechanged,
Libvlc_mediaplayerencounterederror,
libvlc_mediaplayerbuffering
};
Then recompile the build so. By the end of the article, this has not been measured, refer to this article:
Vlc-android get responses to various events such as mediaplayerencounterederror,mediaplayerbuffering http://blog.csdn.net/memegood123/ article/details/8769008
6. Series Articles
Simple example of "vlc-android" vlc-android
End
First, regardless of VLC's function, at least the API design sucks.
Compile vlc-android under "Vlc-android" Mac