LYPlayer使用

作者: NGeLB | 来源:发表于2017-09-29 11:00 被阅读26次

LYPlayer

地址:https://github.com/LY-Coder/LYPlayer

介绍

基于swift3.0,支持高度自定义UI样式,有问题欢迎Issues,或者添加QQ群565099748。

特点

  • 手势控制音量、亮度、播放进度
  • 横屏状态锁屏
  • 横竖屏旋转
  • 自动播放
  • 功能(代码)和视图(代码)分离

分离功能和视图的优劣

  1. 逻辑清晰,代码可读性提高
  2. 如果页面无法满足需求,完全自定义UI

效果图



CocoaPods安装

Podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
  # your other pod
  # ...
  pod 'LYPlayer', '~> 0.4.2'
end

运行下面的命令

$ pod install

License

LYPlayer is released under the MIT license. See LICENSE for details.

相关文章

网友评论

    本文标题:LYPlayer使用

    本文链接:https://www.haomeiwen.com/subject/ahxiextx.html