VLC media player
VLC 是一款自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件,以及 DVD、音频 CD、VCD 及各类流媒体协议
1.官方网址:http://www.videolan.org/
2.编译VLC-Android代码
官网说明:https://wiki.videolan.org/AndroidCompile/
3.补充说明:
1.安装JDK和Android-SDK,SDK更新为最新版本(Android 5.0以上,Etras也需要更新为最新)
2.安装Android-NDK
NDK使用说明:http://developer.android.com/tools/sdk/ndk/index.html#Installing
NDK下载地址,使用迅雷下载:http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin
NDK安装:
Go to the directory to which you downloaded the package.
Run chmod a+x on the downloaded package.
Execute the package. For example:
ndk$ chmod a+x android-ndk-r10c-darwin-x86_64.bin
ndk$ ./android-ndk-r10c-darwin-x86_64.bin
3.安装ant
下载地址:http://mirror.bit.edu.cn/apache//ant/binaries/
解压:sudo tar -xvf apache-ant-1.8.4-bin.tar.gz
4.安装依赖的库
apt-get install autoconf
automake, autopoint, cmake, gawk (or nawk), gcc, g++, libtool, m4, patch, pkg-config, protobuf, ragel, subversion, unzip
5.配置/etc/profile
#For complie vlc
export ANDROID_SDK=/home/shangsong/android/android-studio/sdk/
export ANDROID_NDK=/home/shangsong/android/ndk/android-ndk-r10d/
export ANT_DIR=/home/shangsong/android/ant/apache-ant-1.9.4
export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$ANT_DIR
export ANDROID_ABI=armeabi-v7a
6.编译注意事项
1.如果编译过程中出现下载文件失败,或者解压文件失败,手动下载后放到对应目录即可
2.安装依赖的库是,如果出现依赖关系的问题导致安装失败,可以使用aptitude install
7.如果资源下载结束最后编译出现
“BUILD SUCESSFUL”
就表示编译成功了,如果没有出现该提示,则需要重复编译操作:
编译成功之后:
At this point, you will get an auto-generated debug APK in the vlc-android/build/outputs/apk folder, signed with a debug key.