码迷,mamicode.com
首页 > 其他好文 > 详细

VLC-开源播放器编译

时间:2015-02-15 16:26:23      阅读:591      评论:0      收藏:0      [点我收藏+]

标签:

http://blog.sina.com.cn/s/blog_7b9d64af0101jpvy.html

需要VLC
在iOS开发中,如果你的程序中播放视频,并且多媒体播放功能是你iOS程序的核心功能!
那么,你需要这一款播放器!
它支持m3u8、rtsp、rtmp、MP4、flv…… 多种格式!绝对比苹果自带的播放器给力的多吧!那么,可行而知,使用VLC播放器,那你的iOS应用就显的牛X太多!!!
我为编译VLC播放器,不懈努力了整整3个无眠的夜晚!擦!写下此编译过程,希望能够让别人少走弯路!
 
什么是VLC
VLC是一款开源的视频播放框架!支持N多种多媒体格式!
官方网址:VLC开源网址
可以下载到相应的版本!我们这里使用iOS。
 
VLC的编译方式
 
一.在线编译。意味着你必须链接网络去编译!
因为,VLC本身用到了很多其他开源的代码,其他的开源代码,需要在VLC编译过程中下载和编译。
 
二.编译方式,非常简单,因为VLC团队将编译写成了一个编译命令文件。
我们要做的就是执行代码下载命令。
1.首先从Git上下载编译脚本。
2.执行编译脚本文件。
真机版本编译:
 sh compileVLCforiOS.sh
模拟器版本编译:
 sh compileVLCforiOS.sh -s
 
3.等待编译结果。
这一步是非常纠结的,往往会由于网络原因,导致相关源文件下载失败,而导致编译失败。
向如下情况:
 

The following build commands failed:

Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7

Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/armv7s/libMobileVLCKit.a normal armv7s

Libtool build/MobileVLCKit.build/Release-iphoneos/MobileVLCKit.build/Objects-normal/arm64/libMobileVLCKit.a normal arm64

(3 failures)

 
出现这种情况很正常,不要气馁,一直执行相应的sh命令,直至成功。
 

[info] Installing libvlc

[info] Removing unneeded modules

~/Documents/VLC_Player/devices/ios/ImportedSources/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/package/ios

[info] Building MobileVLCKit (Aggregate static plugins, Release)

[info] Building MobileVLCKit (MobileVLCKit, Release)

[info] Build completed

[info] Building MobileVLCKit (Aggregate static plugins, Release)

[info] Building MobileVLCKit (MobileVLCKit, Release)

[info] Building MediaLibraryKit (MediaLibraryKit, Release)

[info] Building upnpx (upnpx, Release)

[info] Building GTL (GTLTouchStaticLib, Release)

[info] Building CrashReporter (CrashReporter-iOS-Device, Release)

[info] Building QuincyLib (QuincyLib, Release)

[info] Building VLC for iOS (vlc-ios, Release)

[info] Build completed

 
成功后的,运行界面!
技术分享
 
 
希望对你有所帮助!
 
 

VLC-开源播放器编译

标签:

原文地址:http://www.cnblogs.com/xuejinhui/p/4292925.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!