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.