IJKPlayer IOS 编译流程

2019-06-25  本文已影响0人  James_Geng

996.icu

1,Clone 项目及编译 ffmpeg

GitHub:https://github.com/bilibili/ijkplayer

Build IOS:

git clone https://github.com/Bilibili/ijkplayer.git ijkplayer-ios
cd ijkplayer-ios
git checkout -B latest k0.8.8

./init-ios.sh

xCode10+ 以上版本对armv7 架构支持出错,请在compile-ffmpeg.sh 中移除 armv7 架构支持或使用xcode 9.1 编译:

移除armv7架构:

FF_ALL_ARCHS_IOS6_SDK="armv7 armv7s i386"
FF_ALL_ARCHS_IOS7_SDK="armv7 armv7s arm64 i386 x86_64"
FF_ALL_ARCHS_IOS8_SDK="arm64 i386 x86_64"

FF_ALL_ARCHS=$FF_ALL_ARCHS_IOS8_SDK

编译ffmpeg:

./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all

如仍需编译armv7 请按如下步骤:

2,编译Openssl (支持Https)

then cd ios

3,添加IJKMediaFrameworkWithSSL 库

上一篇下一篇

猜你喜欢

热点阅读