Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ac13
GSYVideoPlayer
提交
50a8b095
G
GSYVideoPlayer
项目概览
ac13
/
GSYVideoPlayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
GSYVideoPlayer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
50a8b095
编写于
6月 30, 2019
作者:
S
shuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
prepare 7.0.2
上级
0a3f67f9
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
83 addition
and
33 deletion
+83
-33
README.md
README.md
+35
-21
app/src/main/java/com/example/gsyvideoplayer/video/SampleCoverVideo.java
...va/com/example/gsyvideoplayer/video/SampleCoverVideo.java
+11
-0
doc/DEPENDENCIES.md
doc/DEPENDENCIES.md
+11
-11
doc/UPDATE_VERSION.md
doc/UPDATE_VERSION.md
+25
-0
gradle.properties
gradle.properties
+1
-1
未找到文件。
README.md
浏览文件 @
50a8b095
...
...
@@ -45,24 +45,24 @@
#### A、直接引入
```
//完整版引入
implementation 'com.shuyu:GSYVideoPlayer:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer:7.0.
2
'
```
#### B、添加java和你想要的so支持:
```
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
2
'
//根据你的需求ijk模式的so
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
'
implementation 'com.shuyu:gsyVideoPlayer-armv5:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x64:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x86:7.0.
2
'
```
...
...
@@ -72,13 +72,13 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。
```
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
2
'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.
2
'
```
...
...
@@ -189,6 +189,30 @@ ExoSourceManager.setExoMediaSourceInterceptListener(new ExoMediaSourceInterceptL
## 五、近期版本
### 7.0.2(2019-07-01)
*
update ExoPlayer 到 2.10.0
*
增加 allowCrossProtocolRedirects
```
Map<String, String> header = new HashMap<>();
header.put("allowCrossProtocolRedirects", "true");
xxx.setMapHeadData(header)
```
*
调整 onVideoResume 内部方法
*
修改默认亮度布局和布局兼容问题
*
升级一些依赖
*
exo player setSeekParameter
```
//设置 seek 的临近帧。
if(detailPlayer.getGSYVideoManager().getPlayer() instanceof Exo2PlayerManager) {
((Exo2PlayerManager) detailPlayer.getGSYVideoManager().getPlayer()).setSeekParameter(SeekParameters.NEXT_SYNC);
Debuger.printfError("***** setSeekParameter **** ");
}
```
### 7.0.1(2019-04-07)
*
升级 ExoPlayer 到 2.9.6
...
...
@@ -204,16 +228,6 @@ ExoSourceManager.setSkipSSLChain(true);
### 7.0.0-beta1(2019-03-03)
*
orientation 增加 pause
```
orientationUtils.setIsPause(true);
```
*
update exoPlayer to 2.9.5。
*
exoPlayer 和 mediaPlayer 支持网速显示。
*
修复一些问题。
*
支持库切换到 androidx
### 非 androidx 版本为 6.0.3 以下版本。更多兼容版本请查阅版本更新。
### 更多版本请查阅:[版本更新说明](https://github.com/CarGuo/GSYVideoPlayer/blob/master/doc/UPDATE_VERSION.md)
...
...
app/src/main/java/com/example/gsyvideoplayer/video/SampleCoverVideo.java
浏览文件 @
50a8b095
...
...
@@ -11,7 +11,9 @@ import android.widget.SeekBar;
import
com.bumptech.glide.Glide
;
import
com.bumptech.glide.request.RequestOptions
;
import
com.example.gsyvideoplayer.R
;
import
com.shuyu.gsyvideoplayer.render.GSYRenderView
;
import
com.shuyu.gsyvideoplayer.utils.Debuger
;
import
com.shuyu.gsyvideoplayer.utils.GSYVideoType
;
import
com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer
;
import
com.shuyu.gsyvideoplayer.video.base.GSYBaseVideoPlayer
;
...
...
@@ -108,6 +110,15 @@ public class SampleCoverVideo extends StandardGSYVideoPlayer {
super
.
setViewShowState
(
view
,
visibility
);
}
@Override
public
void
onSurfaceAvailable
(
Surface
surface
)
{
super
.
onSurfaceAvailable
(
surface
);
if
(
GSYVideoType
.
getRenderType
()
!=
GSYVideoType
.
TEXTURE
)
{
if
(
mThumbImageViewLayout
!=
null
&&
mThumbImageViewLayout
.
getVisibility
()
==
VISIBLE
)
{
mThumbImageViewLayout
.
setVisibility
(
INVISIBLE
);
}
}
}
/******************* 下方重载方法,在播放开始不显示底部进度和按键,不需要可屏蔽 ********************/
...
...
doc/DEPENDENCIES.md
浏览文件 @
50a8b095
...
...
@@ -10,24 +10,24 @@
#### A、直接引入
```
//完整版引入
implementation 'com.shuyu:GSYVideoPlayer:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer:7.0.
2
'
```
#### B、添加java和你想要的so支持:
```
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
2
'
//根据你的需求ijk模式的so
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
'
implementation 'com.shuyu:gsyVideoPlayer-armv5:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x64:7.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x86:7.0.
2
'
```
...
...
@@ -37,13 +37,13 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。
```
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:7.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.
2
'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.
2
'
```
...
...
doc/UPDATE_VERSION.md
浏览文件 @
50a8b095
## 下方个版本说明,可以当做简单的wiki使用~,效果可参考DEMO。
### 7.0.2(2019-07-01)
*
update ExoPlayer 到 2.10.0
*
增加 allowCrossProtocolRedirects
```
Map<String, String> header = new HashMap<>();
header.put("allowCrossProtocolRedirects", "true");
xxx.setMapHeadData(header)
```
*
调整 onVideoResume 内部方法
*
修改默认亮度布局和布局兼容问题
*
升级一些依赖
*
exo player setSeekParameter
```
//设置 seek 的临近帧。
if(detailPlayer.getGSYVideoManager().getPlayer() instanceof Exo2PlayerManager) {
((Exo2PlayerManager) detailPlayer.getGSYVideoManager().getPlayer()).setSeekParameter(SeekParameters.NEXT_SYNC);
Debuger.printfError("***** setSeekParameter **** ");
}
```
### 7.0.1(2019-04-07)
*
升级 ExoPlayer 到 2.9.6
*
ExoPlayer 增加 SSL 证书忽略支持
...
...
gradle.properties
浏览文件 @
50a8b095
...
...
@@ -18,7 +18,7 @@ org.gradle.jvmargs=-Xmx2048m
BINTRAY_USER
=
carguo
BINTRAY_KEY
=
PROJ_GROUP
=
com.shuyu
PROJ_VERSION
=
7.0.
1
PROJ_VERSION
=
7.0.
2
PROJ_WEBSITEURL
=
https://github.com/CarGuo/GSYVideoPlayer
PROJ_ISSUETRACKERURL
=
PROJ_VCSURL
=
git@github.com:CarGuo/GSYVideoPlayer.git
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录