https://www.ctolib.com/BMPlayer.html
BMPlayer
A video player for iOS, based on AVPlayer, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
中文说明
Features
Requirements
Installation
CocoaPods
Swift |
podfile |
Swift 4.2 |
pod 'BMPlayer', '~> 1.2.0' |
Swift 4.0 |
pod 'BMPlayer', '~> 1.0.0' |
Swift 3.0 |
pod 'BMPlayer', '~> 0.9.1' |
Swift 2.2 |
pod 'BMPlayer', '~> 0.3.3' |
VIMediaCache, use
Carthage
Add BMPlayer in your Cartfile.
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.
Usage (Support IB and code)
Set status bar color
Please add the View controller-based status bar appearance field in info.plist and change it to NO
IB usage
Direct drag IB to UIView, the aspect ratio for the 16:9 constraint (priority to 750, lower than the 1000 line), the code section only needs to achieve. See more detail on the demo.
Set video url
multi-definition video with cover
Add HTTP header for request
Listening to player state changes
See more detail from the Example project
Customize player
Needs to change before the player alloc.
Advanced Customize
Demonstration
Reference:
ZFPlayer, thanks for the generous help of ZFPlayer's author.
Contact me:
Contributors
You are welcome to fork and submit pull requests.
License
BMPlayer is available under the MIT license. See the LICENSE file for more info.
|
请发表评论