1. 编译需要的工具准备
# install homebrew, git, yasm
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
brew install yasm
# add these lines to your ~/.bash_profile or ~/.profile
# export ANDROID_SDK=<your sdk path>
# export ANDROID_NDK=<your ndk path>
# on Cygwin (unmaintained)
# install git, make, yasm
2. 编译
git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-android
cd ijkplayer-android
git checkout -B latest k0.8.8
修改init-android.sh 中ffmpeg的版本为4.0 IJK_FFMPEG_COMMIT=ff4.0--ijk0.8.25--20200221--001
./init-android.sh
./init-android-openssl.sh
cd config
rm module.sh
ln -s module-default.sh module.sh
cd android/contrib
# 支持https 可选
./compile-openssl.sh clean
./compile-openssl.sh all
# 编译ffmpeg
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
cd ..
./compile-ijk.sh all
Android ijkplayer 编译
最新推荐文章于 2023-08-14 19:50:12 发布