LYPlayer
地址:https://github.com/LY-Coder/LYPlayer
介紹
基于swift3.0,支持高度自定義UI樣式,有問題歡迎Issues,或者添加QQ群565099748。
特點
- 手勢控制音量、亮度、播放進度
- 橫屏狀態鎖屏
- 橫豎屏旋轉
- 自動播放
- 功能(代碼)和視圖(代碼)分離
分離功能和視圖的優劣
- 邏輯清晰,代碼可讀性提高
- 如果頁面無法滿足需求,完全自定義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.