类似Weico的播放器:KRVideoPlayer

wdey 9年前

类似Weico的播放器,支持竖屏模式下全屏播放

Screenshot

screenshot

Usage

To run the example project, clone the repo, and runpod installfrom the Example directory first.

Create player and set frame:

self.videoController = [[KRVideoPlayerController alloc] initWithFrame:CGRectMake(0, 0, width, width*(9.0/16.0))];

Set video path:

self.videoController.contentURL = url;

Show it:

[self.videoController showInWindow];

Requirements

iOS >= 6.0

Installation

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

pod "KRVideoPlayer"

项目主页:http://www.open-open.com/lib/view/home/1432472259327