Skip to content

Commit

Permalink
prepare release 7.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Sep 8, 2020
1 parent a3181d7 commit 89dd073
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 12 deletions.
53 changes: 42 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@
#### A、直接引入
```
//完整版引入
implementation 'com.shuyu:GSYVideoPlayer:7.1.5'
implementation 'com.shuyu:GSYVideoPlayer:7.1.6'
```

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

```
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.6'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.5'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.6'
//根据你的需求ijk模式的so
implementation 'com.shuyu:gsyVideoPlayer-armv5:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-arm64:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-x64:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-x86:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-armv5:7.1.6'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.1.6'
implementation 'com.shuyu:gsyVideoPlayer-arm64:7.1.6'
implementation 'com.shuyu:gsyVideoPlayer-x64:7.1.6'
implementation 'com.shuyu:gsyVideoPlayer-x86:7.1.6'
```

Expand All @@ -81,13 +81,13 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。

```
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-java:7.1.6'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.5'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.1.6'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.5'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.1.6'
```

Expand Down Expand Up @@ -206,6 +206,37 @@ ExoSourceManager.setExoMediaSourceInterceptListener(new ExoMediaSourceInterceptL

## 五、近期版本


## 7.1.6 (2020-09-08)

* fix #2922 deprecated SkipSSLChain ,support api custom dataSource
* 因为忽略证书会导致一些 Google Play 的审核问题所以改为自定义支持
* 如果需要使用 SkipSSLChain ,可以参考 demo 里面的 exosource
* 另外通过 getHttpDataSourceFactory 也可以自定义需要的 HttpDataSource 逻辑

```
ExoSourceManager.setExoMediaSourceInterceptListener(new ExoMediaSourceInterceptListener() {
@Override
public MediaSource getMediaSource(String dataSource, boolean preview, boolean cacheEnable, boolean isLooping, File cacheDir) {
//如果返回 null,就使用默认的
return null;
}
/**
* 通过自定义的 HttpDataSource ,可以设置自签证书或者忽略证书
* demo 里的 GSYExoHttpDataSourceFactory 使用的是忽略证书
* */
@Override
public HttpDataSource.BaseFactory getHttpDataSourceFactory(String userAgent, @Nullable TransferListener listener, int connectTimeoutMillis, int readTimeoutMillis, boolean allowCrossProtocolRedirects) {
//如果返回 null,就使用默认的
return new GSYExoHttpDataSourceFactory(userAgent, listener,
connectTimeoutMillis,
readTimeoutMillis, allowCrossProtocolRedirects);
}
});
```


## 7.1.5 (2020-07-30)

* fix #2625 add WeakReference<Activity>
Expand Down
29 changes: 29 additions & 0 deletions doc/UPDATE_VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
## 下方个版本说明,可以当做简单的wiki使用~,效果可参考DEMO。

## 7.1.6 (2020-09-08)

* fix #2922 deprecated SkipSSLChain ,support api custom dataSource
* 因为忽略证书会导致一些 Google Play 的审核问题所以改为自定义支持
* 如果需要使用 SkipSSLChain ,可以参考 demo 里面的 exosource
* 另外通过 getHttpDataSourceFactory 也可以自定义需要的 HttpDataSource 逻辑

```
ExoSourceManager.setExoMediaSourceInterceptListener(new ExoMediaSourceInterceptListener() {
@Override
public MediaSource getMediaSource(String dataSource, boolean preview, boolean cacheEnable, boolean isLooping, File cacheDir) {
//如果返回 null,就使用默认的
return null;
}
/**
* 通过自定义的 HttpDataSource ,可以设置自签证书或者忽略证书
* demo 里的 GSYExoHttpDataSourceFactory 使用的是忽略证书
* */
@Override
public HttpDataSource.BaseFactory getHttpDataSourceFactory(String userAgent, @Nullable TransferListener listener, int connectTimeoutMillis, int readTimeoutMillis, boolean allowCrossProtocolRedirects) {
//如果返回 null,就使用默认的
return new GSYExoHttpDataSourceFactory(userAgent, listener,
connectTimeoutMillis,
readTimeoutMillis, allowCrossProtocolRedirects);
}
});
```


## 7.1.5 (2020-07-30)

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ org.gradle.jvmargs=-Xmx2048m
BINTRAY_USER=carguo
BINTRAY_KEY=
PROJ_GROUP=com.shuyu
PROJ_VERSION=7.1.5
PROJ_VERSION=7.1.6
PROJ_WEBSITEURL=https://github.com/CarGuo/GSYVideoPlayer
PROJ_ISSUETRACKERURL=
PROJ_VCSURL=git@github.com:CarGuo/GSYVideoPlayer.git
Expand Down

0 comments on commit 89dd073

Please sign in to comment.