iOS编译VLC SDK

来源:互联网 发布:中美贸易额2016数据 编辑:程序博客网 时间:2024/05/29 17:18

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 代码就可以跑起来了

对应代码

0 0
原创粉丝点击