VLC 编译比较困难 相对而言 SDK 的编译非常简单
第一种方式:
终端执行:git Clone http://code.videolan.org/videolan/VLCKit.git
编译(需要较长的时间):buildMobileVLCKit.sh
第二种方式:
使用cocoapods安装
project 'VLCTest.xcodeproj'
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
target 'VLCTest' do
pod 'MobileVLCKit'
end
在终端执行pod install;
添加libz.dylib、libbz2.dylib、libiconv.dylib、libstdc++.6.0.9.dylib四个库,xcode7及以上则是添加libz.tbd、libbz2.tbd、libiconv.tbd、libstdc++.6.0.9.tbd;
执行完成后,到/YourProject/Pods/MobileVLCKit/MobileVLCKit-binary/目录下获取MobileVLCKit.framework。
MobileVLCKit.framework 非常重要 是编译的关键
后续 步骤 请按照iOS中VLC的集成与简单使用进行
iOS中VLC的集成与简单使用
可以简单播放
这个是一份可以播放卫视直播流的代码,只缺少 MobileVLCKit.framework
部分 ,添加并替换tdb后,进行pod install 代码就可以跑起来了