youtube-ios-player-helper-swift
为iOS开发者提供的辅助库,这些开发者希望通过 UIWebView 中的 iframe 播放器在他们的应用程序中添加 YouTube 视频播放
https://github.com/youtube/youtube-ios-player-helper
这个库和旧的 Objective-C 库相同功能
- 可设计 Interface Builder
- 高度可定制和灵活
- 易于使用
- 用 Swift 编写
安装
CocoaPods
- 安装 CocoaPods
- 将此仓库添加到您的
Podfile
target 'Example' do
# IMPORTANT: Make sure use_frameworks! is included at the top of the file
use_frameworks!
platform :ios, '8.0'
pod 'youtube-ios-player-helper-swift'
end
- 运行
pod install
- 打开 CocoaPods 创建的
.xcworkspace
- 完成!
用法
示例项目
查看示例项目 这里
- 下载它
- 在 Xcode 中打开
Example.xcworkspace
- 享受!
作者
Moayad Al kouz, [email protected]
Twitter : @malkouz许可协议
youtube-ios-player-helper-swift 在 Apache 许可证下可用。有关更多信息,请参阅 LICENSE 文件。