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

VLC集成指南

时间:2015-08-12 19:32:26      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:


添加libMobileVLCKit
添加库
libstdc++
libiconv
libbz2
Security
QuartzCore
CoreText
CFnetWork
OpenGLES
AudioToolbox
修改C++编译器为stdC++
?
添加引用路径HeaderSearch Paths   为/Users/fq/Desktop/VLCDemo/VLCDemo/libMobileVLCKit/include
?

把/Users/fq/Desktop/VLCDemo_1414替换为$(SRCROOT)

//具体格式为$(SRCROOT)/工程名称/libMobileVLCKit/include

//加入代理VLCMediaPlayerDelegate

添加头文件#import <MobileVLCKit/MobileVLCKit.h>

使用的文件改为。mm支持C++编译




http://192.168.112.147/share_1414/1414.flv

http:\/\/v247.56.com\/rtsegment\/index\/500001.m3u8?t=Z4Q9EPHByY9wxPO8QxA84Q&e=1406807083&r=1315369414
    playView=[[UIView alloc]initWithFrame:CGRectMake(0, 64, 320, 200)];
    [self.view addSubview:playView];
    _mediaPlayer=[[VLCMediaPlayer alloc]init];
    _mediaPlayer.delegate=self;
    _mediaPlayer.drawable=playView;

 _mediaPlayer.media = [VLCMedia mediaWithURL:[NSURL URLWithString:result]];
    [_mediaPlayer play];

VLC集成指南

标签:

原文地址:http://blog.csdn.net/shuju345/article/details/47447827

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