|
4 | 4 | ## 全量SDK
|
5 | 5 | ```
|
6 | 6 | //音视频预缓存+边播边存
|
7 |
| - //implementation 'com.github.hty527.iPlayer:cache:2.1.26.1' |
| 7 | + implementation 'com.github.hty527.iPlayer:cache:2.1.26.1' |
8 | 8 |
|
9 | 9 | //ijk音视频解码器
|
10 |
| - //implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1' |
| 10 | + implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1' |
11 | 11 |
|
12 | 12 | //exo音视频解码器
|
13 |
| - //implementation 'com.github.hty527.iPlayer:exo:2.1.26.1' |
| 13 | + implementation 'com.github.hty527.iPlayer:exo:2.1.26.1' |
14 | 14 |
|
15 | 15 | //选择exo音视频解码器时需引用
|
16 | 16 | //以下为必须项,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直播流解码协议//(必需) |
20 | 20 |
|
21 | 21 | //以下为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直播流解码协议 |
25 | 25 | ```
|
26 | 26 | ## 常用文档
|
27 | 27 | ### 一、常用api使用说明
|
|
99 | 99 | VideoController controller=new VideoController(videoPlayer.getContext());
|
100 | 100 | mVideoPlayer.setController(controller);//将控制器绑定到播放器
|
101 | 101 | //或使用SDK内置的
|
102 |
| - mVideoPlayer.createController(); |
| 102 | + //mVideoPlayer.setController(mVideoPlayer.initController()); |
103 | 103 | ```
|
104 | 104 | ##### 5.2、自定义UI交互组件
|
105 | 105 | * 5.2.1、为什么有自定义Controller还要整个"自定义UI交互组件"出来?<br>
|
|
198 | 198 | * 5.4.2、使用UI交互组件
|
199 | 199 | ```
|
200 | 200 | //创建一个默认控制器
|
201 |
| - VideoController controller = new VideoController(mVideoPlayer.getContext()); |
| 201 | + VideoController controller = mVideoPlayer.initController(); |
202 | 202 | //将播放器绑定到控制器
|
203 | 203 | mVideoPlayer.setController(controller);
|
204 | 204 | //一键使用默认UI交互组件绑定到控制器
|
|
0 commit comments