Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
沁852
GSYVideoPlayer
提交
775a2acc
G
GSYVideoPlayer
项目概览
沁852
/
GSYVideoPlayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
9
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 搜索 >>
提交
775a2acc
编写于
12月 11, 2017
作者:
G
guoshuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
readme
上级
892ebfb5
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
38 addition
and
6 deletion
+38
-6
99.png
99.png
+0
-0
README.md
README.md
+24
-1
app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java
...java/com/example/gsyvideoplayer/DetailFilterActivity.java
+4
-3
app/src/main/java/com/example/gsyvideoplayer/effect/GSYVideoGLViewCustomRender4.java
...le/gsyvideoplayer/effect/GSYVideoGLViewCustomRender4.java
+8
-0
gsyVideoPlayer/build.gradle
gsyVideoPlayer/build.gradle
+2
-2
thanks.jpg
thanks.jpg
+0
-0
未找到文件。
99.png
0 → 100644
浏览文件 @
775a2acc
761.7 KB
README.md
浏览文件 @
775a2acc
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
[
![Download
](
https://api.bintray.com/packages/carguo/GSYVideoPlayer/gsyVideoPlayer/images/download.svg
)
](https://bintray.com/carguo/GSYVideoPlayer/gsyVideoPlayer/_latestVersion)
[
![Download
](
https://api.bintray.com/packages/carguo/GSYVideoPlayer/gsyVideoPlayer/images/download.svg
)
](https://bintray.com/carguo/GSYVideoPlayer/gsyVideoPlayer/_latestVersion)
[
![Build Status
](
https://travis-ci.org/CarGuo/GSYVideoPlayer.svg?branch=master
)
](https://travis-ci.org/CarGuo/GSYVideoPlayer)
[
![Build Status
](
https://travis-ci.org/CarGuo/GSYVideoPlayer.svg?branch=master
)
](https://travis-ci.org/CarGuo/GSYVideoPlayer)
#### [赞赏链接](https://github.com/CarGuo/GSYVideoPlayer/blob/master/thanks.jpg)
## 一、使用依赖
## 一、使用依赖
##### 新版本调整了代码结构,如更新后显示类路径错误,参考demo调整包路径即可。
##### 新版本调整了代码结构,如更新后显示类路径错误,参考demo调整包路径即可。
...
@@ -107,11 +109,25 @@ compile 'com.shuyu:gsyVideoPlayer-ex_so:2.1.1'
...
@@ -107,11 +109,25 @@ compile 'com.shuyu:gsyVideoPlayer-ex_so:2.1.1'
*
### 4、滤镜和GL动画
*
### 4、滤镜和GL动画
<img
src=
"https://github.com/CarGuo/GSYVideoPlayer/blob/master/09.gif"
/>
<img
src=
"https://github.com/CarGuo/GSYVideoPlayer/blob/master/09.gif"
/>
*
### 5、进度条小窗口预览
*
### 6、背景铺满模糊播放
(已添加代码,未发布)
<img
src=
"https://github.com/CarGuo/GSYVideoPlayer/blob/master/99.png"
width=
"426px"
height=
"240px"
/>
*
### 7、进度条小窗口预览
<img
src=
"https://github.com/CarGuo/GSYVideoPlayer/blob/master/07.gif"
height=
"240px"
/>
<img
src=
"https://github.com/CarGuo/GSYVideoPlayer/blob/master/07.gif"
height=
"240px"
/>
## 五、近期版本
## 五、近期版本
### 2.1.2(2017-xx-xx)
*
背景视频模糊铺满,前方视频正常播放
```
DetailFilterActivity中注释的
//高斯拉伸视频铺满背景,替换黑色,前台正常比例播放
```
### 2.1.1(2017-10-29)
### 2.1.1(2017-10-29)
*
videoCache模式支持增加header
*
videoCache模式支持增加header
*
增加无缝切换视频DEMO SmartPickVideo
*
增加无缝切换视频DEMO SmartPickVideo
...
@@ -171,6 +187,13 @@ GSYVideoManager.instance().setLogLevel(IjkMediaPlayer.IJK_LOG_SILENT);
...
@@ -171,6 +187,13 @@ GSYVideoManager.instance().setLogLevel(IjkMediaPlayer.IJK_LOG_SILENT);
![](
https://ooo.0o0.ooo/2017/06/15/5941f343a39f5.png
)
![](
https://ooo.0o0.ooo/2017/06/15/5941f343a39f5.png
)
## 非常感谢您的支持
#### 撸码不易,如果对你有所帮助,欢迎您的赞赏
![](
https://github.com/CarGuo/GSYVideoPlayer/blob/master/thanks.jpg
)
## License
## License
```
```
...
...
app/src/main/java/com/example/gsyvideoplayer/DetailFilterActivity.java
浏览文件 @
775a2acc
...
@@ -176,9 +176,10 @@ public class DetailFilterActivity extends GSYBaseActivityDetail {
...
@@ -176,9 +176,10 @@ public class DetailFilterActivity extends GSYBaseActivityDetail {
//图片穿孔透视播放
//图片穿孔透视播放
//detailPlayer.setCustomGLRenderer(new GSYVideoGLViewCustomRender3());
//detailPlayer.setCustomGLRenderer(new GSYVideoGLViewCustomRender3());
//高斯拉伸视频铺满背景,替换黑色,前台正常比例播放
detailPlayer
.
setCustomGLRenderer
(
new
GSYVideoGLViewCustomRender4
());
//detailPlayer.setEffectFilter(new GaussianBlurEffect(6.0f, GaussianBlurEffect.TYPEXY));
detailPlayer
.
setGLRenderMode
(
GSYVideoGLView
.
MODE_RENDER_SIZE
);
//detailPlayer.setCustomGLRenderer(new GSYVideoGLViewCustomRender4());
//detailPlayer.setGLRenderMode(GSYVideoGLView.MODE_RENDER_SIZE);
changeFilter
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
changeFilter
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
...
...
app/src/main/java/com/example/gsyvideoplayer/effect/GSYVideoGLViewCustomRender4.java
浏览文件 @
775a2acc
...
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint;
...
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint;
import
android.opengl.GLES20
;
import
android.opengl.GLES20
;
import
android.opengl.Matrix
;
import
android.opengl.Matrix
;
import
com.shuyu.gsyvideoplayer.render.effect.NoEffect
;
import
com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewSimpleRender
;
import
com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewSimpleRender
;
import
com.shuyu.gsyvideoplayer.utils.Debuger
;
import
com.shuyu.gsyvideoplayer.utils.Debuger
;
...
@@ -12,6 +13,7 @@ import javax.microedition.khronos.opengles.GL10;
...
@@ -12,6 +13,7 @@ import javax.microedition.khronos.opengles.GL10;
/**
/**
* 铺满的双重播放
* 铺满的双重播放
* 配合高斯模糊,可以实现,高斯拉伸视频铺满背景,替换黑色,前台正常比例播放
*/
*/
@SuppressLint
(
"ViewConstructor"
)
@SuppressLint
(
"ViewConstructor"
)
public
class
GSYVideoGLViewCustomRender4
extends
GSYVideoGLViewSimpleRender
{
public
class
GSYVideoGLViewCustomRender4
extends
GSYVideoGLViewSimpleRender
{
...
@@ -24,10 +26,16 @@ public class GSYVideoGLViewCustomRender4 extends GSYVideoGLViewSimpleRender {
...
@@ -24,10 +26,16 @@ public class GSYVideoGLViewCustomRender4 extends GSYVideoGLViewSimpleRender {
public
void
onDrawFrame
(
GL10
glUnused
)
{
public
void
onDrawFrame
(
GL10
glUnused
)
{
super
.
onDrawFrame
(
glUnused
);
super
.
onDrawFrame
(
glUnused
);
int
mProgram
=
createProgram
(
getVertexShader
(),
new
NoEffect
().
getShader
(
mSurfaceView
));
GLES20
.
glUseProgram
(
mProgram
);
float
[]
transform
=
new
float
[
16
];
float
[]
transform
=
new
float
[
16
];
Matrix
.
setIdentityM
(
transform
,
0
);
Matrix
.
setIdentityM
(
transform
,
0
);
Matrix
.
scaleM
(
transform
,
0
,
(
float
)
mCurrentViewWidth
/
mSurfaceView
.
getWidth
(),
Matrix
.
scaleM
(
transform
,
0
,
(
float
)
mCurrentViewWidth
/
mSurfaceView
.
getWidth
(),
(
float
)
mCurrentViewHeight
/
mSurfaceView
.
getHeight
(),
1
);
(
float
)
mCurrentViewHeight
/
mSurfaceView
.
getHeight
(),
1
);
GLES20
.
glUniformMatrix4fv
(
getMuSTMatrixHandle
(),
1
,
false
,
mSTMatrix
,
0
);
GLES20
.
glUniformMatrix4fv
(
getMuMVPMatrixHandle
(),
1
,
false
,
transform
,
0
);
GLES20
.
glUniformMatrix4fv
(
getMuMVPMatrixHandle
(),
1
,
false
,
transform
,
0
);
GLES20
.
glDrawArrays
(
GLES20
.
GL_TRIANGLE_STRIP
,
0
,
4
);
GLES20
.
glDrawArrays
(
GLES20
.
GL_TRIANGLE_STRIP
,
0
,
4
);
GLES20
.
glFinish
();
GLES20
.
glFinish
();
...
...
gsyVideoPlayer/build.gradle
浏览文件 @
775a2acc
...
@@ -31,7 +31,7 @@ android {
...
@@ -31,7 +31,7 @@ android {
dependencies
{
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
//
compile project(':gsyVideoPlayer-java')
compile
project
(
':gsyVideoPlayer-java'
)
//compile project(':gsyVideoPlayer-armv5')
//compile project(':gsyVideoPlayer-armv5')
//compile project(':gsyVideoPlayer-armv7a')
//compile project(':gsyVideoPlayer-armv7a')
//compile project(':gsyVideoPlayer-armv64')
//compile project(':gsyVideoPlayer-armv64')
...
@@ -41,7 +41,7 @@ dependencies {
...
@@ -41,7 +41,7 @@ dependencies {
//更多配置版so,增加了concat,rtsp,mpeg,crypto
//更多配置版so,增加了concat,rtsp,mpeg,crypto
//compile project(':gsyVideoPlayer-ex_so')
//compile project(':gsyVideoPlayer-ex_so')
compile
"com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion"
//
compile "com.shuyu:gsyVideoPlayer-java:$gsyVideoVersion"
compile
"com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion"
compile
"com.shuyu:gsyVideoPlayer-armv5:$gsyVideoVersion"
compile
"com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
compile
"com.shuyu:gsyVideoPlayer-armv7a:$gsyVideoVersion"
...
...
thanks.jpg
0 → 100644
浏览文件 @
775a2acc
91.7 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录