https://github.com/36Kr-Mobile/KRVideoPlayer
类似Weico的播放器,支持竖屏模式下全屏播放
https://github.com/36Kr-Mobile/KRVideoPlayer
Last synced: 4 months ago
JSON representation
类似Weico的播放器,支持竖屏模式下全屏播放
- Host: GitHub
- URL: https://github.com/36Kr-Mobile/KRVideoPlayer
- Owner: 36Kr-Mobile
- License: mit
- Created: 2015-05-23T09:18:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T02:00:55.000Z (over 8 years ago)
- Last Synced: 2025-07-11T09:39:40.785Z (4 months ago)
- Language: Objective-C
- Size: 22 MB
- Stars: 2,058
- Watchers: 62
- Forks: 406
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - KRVideoPlayer - 类似Weico的播放器,支持竖屏模式下全屏播放。【 [Priview](https://github.com/36Kr-Mobile/KRVideoPlayer/raw/master/kr_player.gif) 】 (OOM-Leaks-Crash / Player)
README
# KRVideoPlayer
[](https://travis-ci.org/aidenluo/KRVideoPlayer)
[](http://cocoapods.org/pods/KRVideoPlayer)
[](http://cocoapods.org/pods/KRVideoPlayer)
[](http://cocoapods.org/pods/KRVideoPlayer)
## Screenshot

## Notice
This project hasn's been maintained
## Usage
To run the example project, clone the repo, and run `pod install` from 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 <= 8.0`
## Installation
KRVideoPlayer is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```
pod "KRVideoPlayer"
```
## Author
Programming by [aidenluo](http://weibo.com/1840543654)
Design by [cheyi](http://weibo.com/322160605)
## License
KRVideoPlayer is available under the MIT license. See the LICENSE file for more info.