創(chuàng)建一個(gè)新的文件夾 然后cd 到該文件件
cd 新建文件夾路徑
然后
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-ios
克隆好后 接著
cd ijkplayer-ios
再然后
git checkout -B latest k0.8.8
用git branch 查看當(dāng)前分支
git branch
選擇模塊审胸,分為三種,lite為最小體積的
cd config
//移除默認(rèn)
rm module.sh
//替換成lite 雖然tab不出來(lái),但是可以強(qiáng)寫(軟連接)
ln -s module-lite.sh module.sh
初始化 ios代碼
./init-ios.sh
初始化 openssl代碼
//(不需要https請(qǐng)忽略openssl)我需要
./init-ios-openssl.sh
對(duì)openssl 進(jìn)行開(kāi)啟操作
//這里后面是 真是存在的 lite.sh 而不是 網(wǎng)上說(shuō)的 module.sh 否則錯(cuò)誤一堆
echo 'export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-openssl"' >> ../config/module-lite.sh
接著
cd ios
//先執(zhí)行
./compile-openssl.sh all
//再執(zhí)行
./compile-ffmpeg.sh clean
//最后執(zhí)行
./compile-ffmpeg.sh all