Build android
git clone [https://github.com/Bilibili/ijkplayer.git](https://github.com/Bilibili/ijkplayer.git) ijkplayer-android
cd ijkplayer-android
git checkout -B latest k0.8.8
創(chuàng)建更小的jar
cd config
rm [module.sh](http://module.sh)
ln -s [module-lite.sh](http://module-lite.sh) [module.sh](http://module.sh)
cd android/contrib
進(jìn)入工程根目錄
cd ijkplayer
//checkout ffmpeg 源碼爱葵,默認(rèn)從https://github.com/Bilibili/FFmpeg.git checkout
./init-android.sh
//checkout openssl code,增加 https 協(xié)議支持需要用到該庫(kù)反浓。
checkout openssl android源碼萌丈,默認(rèn)從https://github.com/Bilibili/openssl.git checkout
./init-android-openssl.sh
編譯 openssl
// 首先 cd 到 ijkplayer/android/contrib 目錄下,Android下編譯腳本就放在該目錄下
cd android/contrib
// 編譯 openssl
./compile-openssl.sh clean
./compile-openssl.sh all
編譯 ffmpeg
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
編譯 ijkplayer native code
// 返回到 ijkplayer/android 目錄
cd ..
// 編譯生成各CPU架構(gòu)的so雷则,如果不加 all 默認(rèn)只生成 armv7a 架構(gòu)的 so
// 編譯指定架構(gòu)的so:compile-ijk.sh armv7a辆雾,具體參考 .sh 文件中的 Usage
./compile-ijk.sh all
編譯完成后 so 就放在 ijkplayer/android/ijkplayer/ijkplayer-xxx/src/main/libs 目錄下。此時(shí)編譯好的 so 是支持 https 協(xié)議的月劈。
獲取已經(jīng)編譯好的so度迂,請(qǐng)點(diǎn)擊
轉(zhuǎn)載請(qǐng)注明出處,有問(wèn)題和想法猜揪,歡迎私信或者評(píng)論留言惭墓,一起學(xué)習(xí),一起進(jìn)步湿右!