模仿微博的自定义视频播放器 CTVideoView

jopen 8年前

CTVideoView - video avplayer custom weibo 模仿微博的自定义视频播放器

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

CTVideoView is available through CocoaPods. To install it, simply add the following line to your Podfile:

How To Use

- (void)packageWithUrl:(NSString *)url hasSound:(BOOL)hasSound play:(BOOL)play{    [self.videoView packageWithUrl:url hasSound:hasSound play:play];  }    - (CTVideoView *)videoView{  if (!_videoView) {  _videoView = [[CTVideoView alloc]init];  _videoView.frame = CGRectMake(0, 30, 160, 90);  }  return _videoView;  }

you can see CTTestViewController

pod "CTVideoView"

preview

image image image


项目地址: https://github.com/Mikora/CTVideoView