模仿微博的自定義視頻播放器 CTVideoView
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
項目地址: https://github.com/Mikora/CTVideoView
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!