Skip to content

Commit 8d81703

Browse files
committed
doc update
1 parent 17864b3 commit 8d81703

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/update/wiki.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
## 全量SDK
55
```
66
//音视频预缓存+边播边存
7-
//implementation 'com.github.hty527.iPlayer:cache:2.1.26.1'
7+
implementation 'com.github.hty527.iPlayer:cache:2.1.26.1'
88
99
//ijk音视频解码器
10-
//implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
10+
implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
1111
1212
//exo音视频解码器
13-
//implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'
13+
implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'
1414
1515
//选择exo音视频解码器时需引用
1616
//以下为必须项,SDK内部已引用,集成时无需引用
17-
//implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
18-
//implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
19-
//implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
17+
implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
18+
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
19+
implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
2020
2121
//以下为exo解码器可选依赖,请根据需要实现
22-
//implementation 'com.google.android.exoplayer:exoplayer-dash:2.18.1'//支持DASH内容
23-
//implementation "com.google.android.exoplayer:exoplayer-hls:2.18.1"//支持HLS内容
24-
//implementation "com.google.android.exoplayer:exoplayer-rtsp:2.18.1"//rtsp直播流解码协议
22+
implementation 'com.google.android.exoplayer:exoplayer-dash:2.18.1'//支持DASH内容
23+
implementation "com.google.android.exoplayer:exoplayer-hls:2.18.1"//支持HLS内容
24+
implementation "com.google.android.exoplayer:exoplayer-rtsp:2.18.1"//rtsp直播流解码协议
2525
```
2626
## 常用文档
2727
### 一、常用api使用说明
@@ -99,7 +99,7 @@
9999
VideoController controller=new VideoController(videoPlayer.getContext());
100100
mVideoPlayer.setController(controller);//将控制器绑定到播放器
101101
//或使用SDK内置的
102-
mVideoPlayer.createController();
102+
//mVideoPlayer.setController(mVideoPlayer.initController());
103103
```
104104
##### 5.2、自定义UI交互组件
105105
* 5.2.1、为什么有自定义Controller还要整个"自定义UI交互组件"出来?<br>
@@ -198,7 +198,7 @@
198198
* 5.4.2、使用UI交互组件
199199
```
200200
//创建一个默认控制器
201-
VideoController controller = new VideoController(mVideoPlayer.getContext());
201+
VideoController controller = mVideoPlayer.initController();
202202
//将播放器绑定到控制器
203203
mVideoPlayer.setController(controller);
204204
//一键使用默认UI交互组件绑定到控制器

0 commit comments

Comments
 (0)