Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
NotesChapter
GSYVideoPlayer
提交
50ee93a2
G
GSYVideoPlayer
项目概览
NotesChapter
/
GSYVideoPlayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
8
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 搜索 >>
提交
50ee93a2
编写于
11月 11, 2016
作者:
S
shuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix 注释
上级
80421df8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
1 deletion
+14
-1
app/src/main/java/com/example/gsyvideoplayer/GSYApplication.java
.../main/java/com/example/gsyvideoplayer/GSYApplication.java
+1
-0
app/src/main/java/com/example/gsyvideoplayer/PlayActivity.java
...rc/main/java/com/example/gsyvideoplayer/PlayActivity.java
+4
-0
app/src/main/java/com/example/gsyvideoplayer/listener/OnTransitionListener.java
...example/gsyvideoplayer/listener/OnTransitionListener.java
+1
-0
app/src/main/java/com/example/gsyvideoplayer/utils/JumpUtils.java
...main/java/com/example/gsyvideoplayer/utils/JumpUtils.java
+2
-0
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/GSYVideoManager.java
...c/main/java/com/shuyu/gsyvideoplayer/GSYVideoManager.java
+3
-1
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/model/GSYModel.java
...rc/main/java/com/shuyu/gsyvideoplayer/model/GSYModel.java
+2
-0
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/utils/CommonUtil.java
.../main/java/com/shuyu/gsyvideoplayer/utils/CommonUtil.java
+1
-0
未找到文件。
app/src/main/java/com/example/gsyvideoplayer/GSYApplication.java
浏览文件 @
50ee93a2
...
...
@@ -5,6 +5,7 @@ import android.app.Application;
import
com.shuyu.gsyvideoplayer.GSYVideoManager
;
/**
* 初始化视频播放
* Created by shuyu on 2016/11/11.
*/
...
...
app/src/main/java/com/example/gsyvideoplayer/PlayActivity.java
浏览文件 @
50ee93a2
...
...
@@ -18,6 +18,10 @@ import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
/**
* 单独的视频播放页面
* Created by shuyu on 2016/11/11.
*/
public
class
PlayActivity
extends
AppCompatActivity
{
public
final
static
String
IMG_TRANSITION
=
"IMG_TRANSITION"
;
...
...
app/src/main/java/com/example/gsyvideoplayer/listener/OnTransitionListener.java
浏览文件 @
50ee93a2
...
...
@@ -5,6 +5,7 @@ import android.os.Build;
import
android.transition.Transition
;
/**
* 重载了过渡动画的方法
* Created by shuyu on 2016/8/15.
*/
...
...
app/src/main/java/com/example/gsyvideoplayer/utils/JumpUtils.java
浏览文件 @
50ee93a2
...
...
@@ -17,6 +17,8 @@ import com.example.gsyvideoplayer.R;
public
class
JumpUtils
{
/**
* 跳转到视频播放
*
* @param activity
* @param view
*/
...
...
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/GSYVideoManager.java
浏览文件 @
50ee93a2
...
...
@@ -74,7 +74,8 @@ public class GSYVideoManager implements IMediaPlayer.OnPreparedListener, IMediaP
*/
public
static
HttpProxyCacheServer
getProxy
(
Context
context
)
{
HttpProxyCacheServer
proxy
=
GSYVideoManager
.
instance
().
proxy
;
return
proxy
==
null
?
(
proxy
=
GSYVideoManager
.
instance
().
newProxy
(
context
))
:
proxy
;
return
proxy
==
null
?
(
GSYVideoManager
.
instance
().
proxy
=
GSYVideoManager
.
instance
().
newProxy
(
context
))
:
proxy
;
}
/**
...
...
@@ -157,6 +158,7 @@ public class GSYVideoManager implements IMediaPlayer.OnPreparedListener, IMediaP
Surface
holder
=
(
Surface
)
msg
.
obj
;
if
(
holder
.
isValid
())
{
mediaPlayer
.
setSurface
(
holder
);
//exoPlayer在一些手机上在onPause后会声音先出来,画面黑一段时间,目前通过seekTo之后重新渲染解决
if
(
mediaPlayer
!=
null
&&
mediaPlayer
.
getDuration
()
>
30
&&
mediaPlayer
.
getCurrentPosition
()
<
mediaPlayer
.
getDuration
())
{
mediaPlayer
.
seekTo
(
mediaPlayer
.
getCurrentPosition
()
-
20
);
...
...
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/model/GSYModel.java
浏览文件 @
50ee93a2
...
...
@@ -3,10 +3,12 @@ package com.shuyu.gsyvideoplayer.model;
import
java.util.Map
;
/**
* 视频内部接受数据model
* Created by shuyu on 2016/11/11.
*/
public
class
GSYModel
{
String
url
;
Map
<
String
,
String
>
mapHeadData
;
boolean
looping
;
...
...
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/utils/CommonUtil.java
浏览文件 @
50ee93a2
...
...
@@ -8,6 +8,7 @@ import java.util.Formatter;
import
java.util.Locale
;
/**
* 公共类
* Created by shuyu on 2016/11/11.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录