iOS 開發音視頻流[5]


來源:http://www.jianshu.com/p/3618a9116660

   http://www.jianshu.com/p/1721cd8622f0 

相信Mac用戶都很熟悉一款VLC播放器,這款播放器在Mac上表現異常優異,支持的格式幾乎涵蓋了所有格式)。沒錯,就是它創造者--VideoLAN,開源了一款牛逼的視頻播放框架MobileVLCKit!

我們先來看看它所支持的格式:

.rmvb .asf .avi .divx .dv .flv .gxf .m1v .m2v .m2ts .m4v .mkv .mov .mp2 .mp4 .mpeg .mpeg1 .mpeg2
.mpeg4 .mpg .mts .mxf .ogg .ogm .ps .ts .vob .wmv .a52 .aac .ac3 .dts .flac .m4a .m4p .mka .mod
.mp1 .mp2 .mp3 *.ogg.

1、框架編譯

  1.1官方給出了詳細的教程

  1.2英文不好?FQ網速不好?沒關系!這里有編譯完成的VLC框架,下載下來就好啦!MobileVLCKit靜態庫下載鏈接

Building the framework for iOS

Clone http:
//code.videolan.org/videolan/VLCKit.git
open your favorite terminal application such as Terminal.app or iTerm 2 and navigate to your checkout.
execute .
/buildMobileVLCKit.sh
check
-h for available options
This will automatically fetch and build libvlc
as well as its dependencies and accompanying classes.
If you want to build a library that will work
for both the simulator and devices:
execute .
/buildMobileVLCKit.sh
use xcode command line tools to build a universal library: lipo
-create Release-iphoneos/libMobileVLCKit.a Release-iphonesimulator/libMobileVLCKit.a -o libMobileVLCKit.a
Or to build
as a static framework with device and simulator support:
.
/buildMobileVLCKit.sh -f
Note: the MobileVLCKit Xcode project also allows you to build a
dynamic framework (requiring iOS 8 later) after the build script succeeded once.
Warning: the current build process produces a very large library when
using static mode. 90% of the initial size will be stripped on linking.
Dependencies warning: The built script fetches dependencies automatically and builds them locally; beware that system
-wide installations through Homebrew may interfere with the local build scripts. If you get autoconf-related errors, try removing /usr/local from your PATH, wiping the source tree, and starting the build over.

 

 

 

 

2、項目編譯

 

 

 


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2020 ITdaan.com