- 授权协议: Apache
- 开发语言: Swift
- 操作系统: 跨平台
- 软件首页: https://github.com/renzifeng/ZFPlayer
- 软件文档: https://github.com/renzifeng/ZFPlayer
软件介绍
ZFPlayer是一款的视频播放器软件。
功能:
支持横、竖屏切换,在全屏播放模式下还可以锁定屏幕方向
支持本地视频、网络视频播放
左侧1/2位置上下滑动调节屏幕亮度(模拟器调不了亮度,请在真机调试)
右侧1/2位置上下滑动调节音量(模拟器调不了音量,请在真机调试)
左右滑动调节播放进度
用法(支持IB和代码)
IB用法
直接拖UIView到IB上,宽高比为16:9,代码部分只需要实现
self.playerView.videoURL = self.videoURL;
// 返回按钮事件
__weak typeof(self) weakSelf = self;
self.playerView.goBackBlock = ^{
[weakSelf.navigationController popViewControllerAnimated:YES];
};代码实现(Masonry)用法
self.playerView = [ZFPlayerView setupZFPlayer];
[self.view addSubview:self.playerView];
[self.playerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.top.right.equalTo(self.view);
make.height.equalTo(self.playerView.mas_width).multipliedBy(9.0f/16.0f);
}];
self.playerView.videoURL = self.videoURL;// 返回按钮事件__weak typeof(self) weakSelf = self;
self.playerView.goBackBlock = ^{
[weakSelf.navigationController popViewControllerAnimated:YES];
};图片效果演示
Practical Algorithms for Programmers
Andrew Binstock、John Rex / Addison-Wesley Professional / 1995-06-29 / USD 39.99
Most algorithm books today are either academic textbooks or rehashes of the same tired set of algorithms. Practical Algorithms for Programmers is the first book to give complete code implementations o......一起来看看 《Practical Algorithms for Programmers》 这本书的介绍吧!
