这篇与Swift基本上没有什么关系,只是之后会用到,这次编译是使用Mac编译IOS版本号的。以下是编译流程,最后是整个项目的下载地址。由于下载太慢了。
1、下载源代码
git clone https://github.com/bbcallen/ijkplayer.git
2、编译
cd ijkplayer-ios-stable
./init-ios.sh//这里下载依赖包
./compile-ffmpeg.sh//这里编译。会有几个选项,我选的是all
3、编译结果
lipo archs: armv7 armv7s arm64 i386 x86_64 Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavcodec.a are: armv7 armv7s i386 x86_64 arm64 Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavformat.a are: armv7 armv7s i386 x86_64 arm64 Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libavutil.a are: armv7 armv7s i386 x86_64 arm64 Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libswscale.a are: armv7 armv7s i386 x86_64 arm64 Architectures in the fat file: /Users/jiezhang/ijkplayer-ios-stable/ios/build/universal/lib/libswresample.a are: armv7 armv7s i386 x86_64 arm644、下载地址
整个压缩包也比較大,800多M,360云盘 http://yunpan.cn/csy5xsjtTR2e6 提取码 1838
5、试验效果