文章来源:淘论文网   发布者: 毕业设计   浏览量: 37



还可以点击去查询以下关键词:
[XLVide]    [定制]    [oPlayer]    [XLVide定制oPlayer]   

项目介绍:

XLVideoPlayer

A Custom Video Player


XLVideoPlayer.h接口定义

/** * video url 视频路径 */ @property (nonatomic, strong) NSString *videoUrl; /** * play or pause */ - (void)playPause; /** * dealloc 销毁 */ - (void)destroyPlayer; /** * 在cell上播放必须绑定TableView、当前播放cell的IndexPath */ - (void)playerBindTableView:(UITableView *)bindTableView currentIndexPath:(NSIndexPath *)currentIndexPath; /** * 在scrollview的scrollViewDidScroll代理中调用 * * @param support 是否支持右下角小窗悬停播放 */ - (void)playerScrollIsSupportSmallWindowPlay:(BOOL)support;

使用

@interface VideoDetailViewController () { XLVideoPlayer *_player; } @end @implementation VideoDetailViewController - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; _player = [[XLVideoPlayer alloc] init]; _player.videoUrl = self.mp4_url; [_player playerBindTableView:self.exampleTableView currentIndexPath:_indexPath]; _player.frame = CGRectMake(0, 64, self.view.frame.size.width, 250); [cell.contentView addSubview:_player]; } #pragma mark - UIScrollViewDelegate - (void)scrollViewDidScroll:(UIScrollView *)scrollView { if ([scrollView isEqual:self.exampleTableView]) { [_player playerScrollIsSupportSmallWindowPlay:YES]; } }

论文开题报告


这里还有:


还可以点击去查询:
[XLVide]    [定制]    [oPlayer]    [XLVide定制oPlayer]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/8351.docx
  • 上一篇:iOS 二维码 (AV定制Foundtion原生态扫描)
  • 下一篇:简化NSUserDef定制ault操作的小工具