MCPlayer一个简单好用的视频播放器

一个简单好用的图片播放器
Based on AVPLayer video player
基本公开的三个方法

/**
播放 */
(void)MCPlayerPlay;
/**

暂停 */
(void)MCPlayerPause;
/**

重置 */
(void)MCPlayerReset;
tableview上的使用方法

MCPlayerModel * data = [[MCPlayerModel alloc]init];
data.videoURL = @”http://baobab.wdjcdn.com/1456665467509qingshu.mp4“;
data.title = @”电影一”;
UITableViewCell * middleCell = [tableView cellForRowAtIndexPath:indexPath];
MCPlayerView * view = [MCPlayerView sharedPlayerView];
[middleCell addSubview:view];
[view mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(UIEdgeInsetsMake(0, 0, 0, 0));
}];
view.cell = middleCell;
view.playModel = data;
[view MCPlayerReset];

https://github.com/CZXBigBrother/MCPlayer

你可能感兴趣的:(iOS)