Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ac13
GSYVideoPlayer
提交
8067ceb9
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,发现更多精彩内容 >>
提交
8067ceb9
编写于
12月 21, 2018
作者:
G
guoshuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
prepare 6.0.2
上级
c93f9e0b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
40 addition
and
62 deletion
+40
-62
README.md
README.md
+20
-49
app/src/main/java/com/example/gsyvideoplayer/DetailPlayer.java
...rc/main/java/com/example/gsyvideoplayer/DetailPlayer.java
+0
-1
doc/DEPENDENCIES.md
doc/DEPENDENCIES.md
+11
-11
doc/UPDATE_VERSION.md
doc/UPDATE_VERSION.md
+8
-0
gradle.properties
gradle.properties
+1
-1
未找到文件。
README.md
浏览文件 @
8067ceb9
...
...
@@ -45,24 +45,24 @@
#### A、直接引入
```
//完整版引入
implementation 'com.shuyu:GSYVideoPlayer:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer:6.0.
2
'
```
#### B、添加java和你想要的so支持:
```
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
2
'
//根据你的需求ijk模式的so
implementation 'com.shuyu:gsyVideoPlayer-armv5:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-x64:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-x86:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-armv5:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x64:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x86:6.0.
2
'
```
...
...
@@ -72,13 +72,13 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。
```
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
2
'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.
2
'
```
...
...
@@ -134,6 +134,15 @@ implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.1'
## 五、近期版本
### 6.0.1(2018-12-21)
*
update exoPlayer to 2.9.1
*
Deprecated setupLazy
*
fix exoPlayer looper
*
add
`overrideExtension`
to exoPlayer
### 6.0.1 (2018-10-14)
*
正式发布6.0版本,调整player和cache加载模式。
...
...
@@ -149,44 +158,6 @@ CacheFactory.setCacheManager(ProxyCacheManager.class);//代理缓存模式,支
*
去除无用资源。
*
修复某种场景下的内存泄漏问题。
### 6.0.0-beta (2018-08-22)
*
升级 ExoPlayer 到 2.8.4。
*
修复代理缓存时头部信息不存在问题。
*
调整代码结构,移除 GSYVideoType 中的内核切换,直接通过 PlayerFactory 装载。
*
调整代码结构,ExoPlayer可单独依赖,通过 PlayerFactory 装载,更方便自定义PlayerManager。
```
//PlayerFactory.setPlayManager(new Exo2PlayerManager());//EXO模式
//PlayerFactory.setPlayManager(new SystemPlayerManager());//系统模式
//PlayerFactory.setPlayManager(new IjkPlayerManager());//ijk模式
```
*
调整代码结构,CacheFactory 更方便自定义,默认 ProxyCacheManager。
```
//CacheFactory.setCacheManager(new ExoPlayerCacheManager());//exo缓存模式,支持m3u8,只支持exo
//CacheFactory.setCacheManager(new ProxyCacheManager());//代理缓存模式,支持所有模式,不支持m3u8等
```
*
增加 ExoMediaSourceInterceptListener,方便 Exo 模式下使用自定义的 MediaSource。
```
ExoSourceManager.setExoMediaSourceInterceptListener(new ExoMediaSourceInterceptListener() {
/**
* @param dataSource 链接
* @param preview 是否带上header,默认有header自动设置为true
* @param cacheEnable 是否需要缓存
* @param isLooping 是否循环
* @param cacheDir 自定义缓存目录
* @return 返回不为空时,使用返回的自定义mediaSource
*/
@Override
public MediaSource getMediaSource(String dataSource, boolean preview, boolean cacheEnable, boolean isLooping, File cacheDir) {
return null;
}
});
```
### 更多版本请查阅:[版本更新说明](https://github.com/CarGuo/GSYVideoPlayer/blob/master/doc/UPDATE_VERSION.md)
...
...
app/src/main/java/com/example/gsyvideoplayer/DetailPlayer.java
浏览文件 @
8067ceb9
...
...
@@ -97,7 +97,6 @@ public class DetailPlayer extends AppCompatActivity {
.
setShowFullAnimation
(
false
)
.
setNeedLockFull
(
true
)
.
setUrl
(
url
)
.
setLooping
(
true
)
.
setMapHeadData
(
header
)
.
setCacheWithPlay
(
false
)
.
setVideoTitle
(
"测试视频"
)
...
...
doc/DEPENDENCIES.md
浏览文件 @
8067ceb9
...
...
@@ -7,24 +7,24 @@
#### A、直接引入
```
//完整版引入
implementation 'com.shuyu:GSYVideoPlayer:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer:6.0.
2
'
```
#### B、添加java和你想要的so支持:
```
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
2
'
//根据你的需求ijk模式的so
implementation 'com.shuyu:gsyVideoPlayer-armv5:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-x64:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-x86:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-armv5:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-armv7a:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-arm64:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x64:6.0.
2
'
implementation 'com.shuyu:gsyVideoPlayer-x86:6.0.
2
'
```
...
...
@@ -34,13 +34,13 @@ A、B普通版本支持263/264/265等,对于mpeg编码会有声音无画面情
C 引入的so支持mpeg编码和其他补充协议,但是so包相对变大。
```
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-java:6.0.
2
'
//是否需要ExoPlayer模式
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
1
'
implementation 'com.shuyu:GSYVideoPlayer-exo2:6.0.
2
'
//更多ijk的编码支持
implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.
1
'
implementation 'com.shuyu:gsyVideoPlayer-ex_so:6.0.
2
'
```
...
...
doc/UPDATE_VERSION.md
浏览文件 @
8067ceb9
## 下方个版本说明,可以当做简单的wiki使用~,效果可参考DEMO。
### 6.0.1(2018-12-21)
*
update exoPlayer to 2.9.1
*
Deprecated setupLazy
*
fix exoPlayer looper
*
add
`overrideExtension`
to exoPlayer
### 6.0.1 (2018-10-14)
*
正式发布6.0版本,调整player和cache加载模式。
...
...
gradle.properties
浏览文件 @
8067ceb9
...
...
@@ -18,7 +18,7 @@ org.gradle.jvmargs=-Xmx2048m
BINTRAY_USER
=
carguo
BINTRAY_KEY
=
PROJ_GROUP
=
com.shuyu
PROJ_VERSION
=
6.0.
1
PROJ_VERSION
=
6.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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录