DEPENDENCIES.md 1.5 KB
Newer Older
S
shuyu 已提交
1 2
## 依赖方法

S
Shuyu Guo 已提交
3 4 5

#### 7.0版本使用了anndroidx,support版本请看6.x.x,请查看:[--- 版本更新说明 - 入口](https://github.com/CarGuo/GSYVideoPlayer/blob/master/doc/UPDATE_VERSION.md)。

S
shuyu 已提交
6 7 8 9 10 11 12
### 1、JCenter 引入方法(推荐)

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

#### A、直接引入
```
//完整版引入
S
shuyu 已提交
13
implementation 'com.shuyu:GSYVideoPlayer:7.0.1'
S
shuyu 已提交
14 15 16 17 18 19

```

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

```
S
shuyu 已提交
20
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.1'
S
shuyu 已提交
21

G
guoshuyu 已提交
22
//是否需要ExoPlayer模式
S
shuyu 已提交
23
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.1'
G
guoshuyu 已提交
24 25

//根据你的需求ijk模式的so
S
shuyu 已提交
26 27 28 29 30
implementation 'com.shuyu:gsyVideoPlayer-armv5:7.0.1'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.0.1'
implementation 'com.shuyu:gsyVideoPlayer-arm64:7.0.1'
implementation 'com.shuyu:gsyVideoPlayer-x64:7.0.1'
implementation 'com.shuyu:gsyVideoPlayer-x86:7.0.1'
S
shuyu 已提交
31 32 33 34 35 36 37 38 39

```

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

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

G
guoshuyu 已提交
42
//是否需要ExoPlayer模式
S
shuyu 已提交
43
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.1'
S
shuyu 已提交
44

G
guoshuyu 已提交
45
//更多ijk的编码支持
S
shuyu 已提交
46
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.1'
S
shuyu 已提交
47 48 49 50 51

```

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

S
shuyu 已提交
52
### 2、JitPack引入方法
S
shuyu 已提交
53

S
Shuyu Guo 已提交
54
Not Support after 6.x.x