DEPENDENCIES.md 1.3 KB
Newer Older
S
shuyu 已提交
1 2 3 4 5 6 7 8 9
## 依赖方法

### 1、JCenter 引入方法(推荐)

**你可以选择下面三种的其中一种,在module下的build.gradle添加。**

#### A、直接引入
```
//完整版引入
G
6.0.3  
guoshuyu 已提交
10
implementation 'com.shuyu:GSYVideoPlayer:6.0.3'
S
shuyu 已提交
11 12 13 14 15 16

```

#### B、添加java和你想要的so支持:

```
G
6.0.3  
guoshuyu 已提交
17
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.3'
S
shuyu 已提交
18

G
guoshuyu 已提交
19
//是否需要ExoPlayer模式
G
6.0.3  
guoshuyu 已提交
20
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.3'
G
guoshuyu 已提交
21 22

//根据你的需求ijk模式的so
G
6.0.3  
guoshuyu 已提交
23 24 25 26 27
implementation 'com.shuyu:gsyVideoPlayer-armv5:6.0.3'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:6.0.3'
implementation 'com.shuyu:gsyVideoPlayer-arm64:6.0.3'
implementation 'com.shuyu:gsyVideoPlayer-x64:6.0.3'
implementation 'com.shuyu:gsyVideoPlayer-x86:6.0.3'
S
shuyu 已提交
28 29 30 31 32 33 34 35 36

```

#### C、支持其他格式协议的(mpeg,rtsp, concat、crypto协议)

A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情况。
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。
 
```
G
6.0.3  
guoshuyu 已提交
37
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.3'
S
shuyu 已提交
38

G
guoshuyu 已提交
39
//是否需要ExoPlayer模式
G
6.0.3  
guoshuyu 已提交
40
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.3'
S
shuyu 已提交
41

G
guoshuyu 已提交
42
//更多ijk的编码支持
G
6.0.3  
guoshuyu 已提交
43
implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.3'
S
shuyu 已提交
44 45 46 47 48

```

--------------------------------------------------------------------------------

S
shuyu 已提交
49
### 2、JitPack引入方法
S
shuyu 已提交
50

G
guoshuyu 已提交
51
Not Support after 6.x.x