LycamPlusMediaPlayerFramework 通过 CocoaPods 发布。您应该首先安装 CocoaPods。
将以下文本添加到您的 Podfile
文件中
pod 'LycamPlusMediaPlayerFramework',:git=>'https://git.coding.net/fengshicao/LycamPlusMediaPlayerSDK-iOS.git'
通过 Cocoapods 来安装所有的依赖包
$ pod install
注意,完成以上操作后,应打开 .xcworkspace 后缀的工程文件,而不是原来的.xcodeproj
文件
LycamPlus 云平台可以为您的 iOS 应用提供一种视频直播的快速播放解决方案。您可以使用简单的几行代码来完成视频直播收看功能。《LycamPlus iOS SDK 示例》是演示代码。
最快的方法是直接克隆 LycamPlusMediaPlayerSDK-iOS 示例 项目。使用 LCPVideoPlayerViewController
开始视频收看。
#import <LCPVideoPlayerViewController.h>
// 初始化 LCPVideoPlayerViewController SDK,直接开启收看之旅
[LCPVideoPlayerViewController presentFromViewController:self withTitle:[NSString stringWithFormat:@"URL: %@", url] URL:url completion:nil];
为了进一步了解 LycamPlusMediaPlayerFramework SDK iOS,您可以阅读 iOS 文档。也可以查看教程,以帮助您入门。
fengshicao , [email protected]
Apache 2.0
Copyright 2015 Lycam, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://apache.ac.cn/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.