Skip to content

Commit 3162192

Browse files
committed
Release 1.0.0
1 parent cd1a6f4 commit 3162192

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ A video player for iOS, based on AVPlayer, support the horizontal, vertical scre
2323
- [x] Add Http header and other options to AVURLAsset
2424
- [x] Easy to customize
2525
- [x] Supporting show local and online subtitles
26-
- [x] [Swift 3](https://developer.apple.com/swift/)
26+
- [x] [Swift 4](https://developer.apple.com/swift/)
2727

2828
## Requirements
2929
- iOS 8 +
30-
- Xcode 8
31-
- Swift 3
30+
- Xcode 9
31+
- Swift 4
3232

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

4444
#### Swift 3
@@ -67,6 +67,7 @@ Add `BMPlayer` in your Cartfile.
6767
github "BrikerMan/BMPlayer"
6868
```
6969
Run carthage to build the framework and drag the built BMPlayer.framework into your Xcode project.
70+
7071
### Demo
7172
run `pod install` at `Example` folder before run the demo.
7273

@@ -105,7 +106,8 @@ player.snp.makeConstraints { (make) in
105106
make.height.equalTo(player.snp.width).multipliedBy(9.0/16.0).priority(750)
106107
}
107108
// Back button event
108-
player.backBlock = { [unowned self] in
109+
player.backBlock = { [unowned self] (isFullScreen) in
110+
if isFullScreen == true { return }
109111
let _ = self.navigationController?.popViewController(animated: true)
110112
}
111113
```

README.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
```
3636
use_frameworks!
3737
38-
pod 'BMPlayer', :git => 'https://github.com/BrikerMan/BMPlayer.git'
38+
pod 'BMPlayer', '~> 1.0.0'
3939
```
4040

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

0 commit comments

Comments
 (0)