Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BrikerMan committed Sep 25, 2017
1 parent cd1a6f4 commit 3162192
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ A video player for iOS, based on AVPlayer, support the horizontal, vertical scre
- [x] Add Http header and other options to AVURLAsset
- [x] Easy to customize
- [x] Supporting show local and online subtitles
- [x] [Swift 3](https://developer.apple.com/swift/)
- [x] [Swift 4](https://developer.apple.com/swift/)

## Requirements
- iOS 8 +
- Xcode 8
- Swift 3
- Xcode 9
- Swift 4

## Installation
### CocoaPods
Expand All @@ -38,7 +38,7 @@ A video player for iOS, based on AVPlayer, support the horizontal, vertical scre
```
use_frameworks!
pod 'BMPlayer', :git => 'https://github.com/BrikerMan/BMPlayer.git'
pod 'BMPlayer', '~> 1.0.0'
```

#### Swift 3
Expand Down Expand Up @@ -67,6 +67,7 @@ Add `BMPlayer` in your Cartfile.
github "BrikerMan/BMPlayer"
```
Run carthage to build the framework and drag the built BMPlayer.framework into your Xcode project.

### Demo
run `pod install` at `Example` folder before run the demo.

Expand Down Expand Up @@ -105,7 +106,8 @@ player.snp.makeConstraints { (make) in
make.height.equalTo(player.snp.width).multipliedBy(9.0/16.0).priority(750)
}
// Back button event
player.backBlock = { [unowned self] in
player.backBlock = { [unowned self] (isFullScreen) in
if isFullScreen == true { return }
let _ = self.navigationController?.popViewController(animated: true)
}
```
Expand Down
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
```
use_frameworks!
pod 'BMPlayer', :git => 'https://github.com/BrikerMan/BMPlayer.git'
pod 'BMPlayer', '~> 1.0.0'
```

#### Swift 3
Expand Down Expand Up @@ -100,7 +100,7 @@ player.snp_makeConstraints { (make) in
// 注意此处,宽高比 16:9 优先级比 1000 低就行,在因为 iPhone 4S 宽高比不是 16:9
make.height.equalTo(player.snp_width).multipliedBy(9.0/16.0).priority(750)
}
player.backBlock = { [unowned self] in
player.backBlock = { [unowned self] (isFullScreen) in
let _ = self.navigationController?.popViewController(animated: true)
}
```
Expand Down

0 comments on commit 3162192

Please sign in to comment.