Finally, the use of the tableview with the function.
The rest of the functions have been completed almost, later added on the documentation.~~
#主要作者比较懒,有问题可以直接发邮件[email protected],还有待完善的地方慢慢修改
MCPlayerModel * data = [[MCPlayerModel alloc]init];
data.videoURL = @"http://baobab.wdjcdn.com/1456665467509qingshu.mp4";
data.title = @"电影一";
/**
- 播放 */
- (void)MCPlayerPlay;
/**
- 暂停 */
- (void)MCPlayerPause;
/**
- 重置 */
- (void)MCPlayerReset;
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];