Skip to content

Commit 75ab0d4

Browse files
authored
Update README.md
1 parent 3cefd5a commit 75ab0d4

File tree

1 file changed

+48
-6
lines changed

1 file changed

+48
-6
lines changed

README.md

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,19 +129,61 @@ $ git clone https://bitbucket.org/ksvc/ksymediaplayer_ios.git --depth 1
129129
```
130130

131131
### 4.3 Cocoapods安装
132-
#### 4.3.1 pod私有库下载
132+
133133
通过Cocoapods能将静态库framework下载到本地,只需要将如下语句加入你的Podfile:
134134

135135
```
136-
pod 'KSYMediaPlayer_iOS', :git => 'https://github.com/ksvc/KSYMediaPlayer_iOS.git'
136+
pod 'KSYMediaPlayer_iOS'
137137
```
138-
执行pod install或者pod update后,将SDK加入工程。
139-
#### 4.3.1 pod官方库下载
140-
配置Podfile:
138+
执行pod install或者pod update后,将SDK加入工程。
139+
140+
为满足不同用户的需求,本SDK提供了两个不同的子模块
141+
* KSYMediaPlayer_live : 用于直播的静态库
142+
* KSYMediaPlayer_vod : 用于点播的静态库(从2.7.0版本开始支持pod引用点播静态库)
141143

144+
KSYMediaPlayer_iOS默认的子模块是KSYMediaPlayer_live,也就是说Podfile中直接填写
142145
```
143-
pod 'KSYMediaPlayer_iOS'
146+
pod 'KSYMediaPlayer_iOS'
147+
```
148+
等同于
149+
```
150+
pod 'KSYMediaPlayer_iOS/KSYMediaPlayer_live'
144151
```
152+
153+
如果您希望通过pod方式引用点播库,那么需要在podfile这样写:
154+
```
155+
pod 'KSYMediaPlayer_iOS/KSYMediaPlayer_vod'
156+
```
157+
158+
<details>
159+
<summary>Pod依赖进阶</summary>
160+
<b markdown=1>
161+
162+
* 本地开发版 (sdk clone或下载到本地后)
163+
```
164+
pod 'KSYMediaPlayer_iOS/KSYMediaPlayer_live', :path => '../'
165+
```
166+
167+
* 直接指定SDK的github仓库地址和版本号
168+
```
169+
pod 'KSYMediaPlayer_iOS/KSYMediaPlayer_live', :git => 'https://github.com/ksvc/KSYMediaPlayer_iOS.git', :tag => 'v2.7.0'
170+
```
171+
172+
* 从cocoapod官方库Trunk获取spec, 从github下载sdk
173+
```
174+
pod ''KSYMediaPlayer_iOS/KSYMediaPlayer_live'
175+
```
176+
177+
* 如果pod install 时出现无法找到specification的提示, 请先更新repo
178+
```
179+
pod repo update
180+
```
181+
182+
* **注意1**: 不能将以上语句都加入Podfile, 他们作用是一样的, 只是Podspec读取位置不同.
183+
184+
</b>
185+
</details>
186+
145187
## 5. 快速集成
146188
[快速集成](https://github.com/ksvc/KSYMediaPlayer_iOS/wiki/rapidIntegration)中提供了集成金山云播放SDK的基本方法。
147189
具体可以参考demo工程中的相应文件。

0 commit comments

Comments
 (0)