NYVideoKit
示例
要运行示例项目,请先克隆仓库,然后从 Example 目录运行 pod install
。
要求
安装
添加仓库
要使用 NYVideoKit 组件,您必须将其仓库添加到本地机器上。
Pod 安装
Lotus 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
source '[email protected]:niyaoyao/NYVideoKitSpec.git'
platform :ios, '8.0'
target 'project-target-name' do
pod 'NYVideoKit'
end
运行时访问
[访问] 此应用程序已崩溃,因为它试图在不提供使用描述的情况下访问隐私敏感数据。应用程序的 Info.plist 必须包含一个 NSCameraUsageDescription 键,其字符串值向用户解释应用程序如何使用这些数据。
在 Info.plist 文件中以下添加键值元素以解决崩溃。
<key>NSCameraUsageDescription</key>
<string>Please allow App to use Camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Please allow App to use Microphone.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Please allow App to use Photo Library Assests.</string>
作者
niyaoyao, [email protected]
许可证
NYVideoKit 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。