Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ac13
GSYVideoPlayer
提交
4a46ead2
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 搜索 >>
提交
4a46ead2
编写于
4月 20, 2017
作者:
S
shuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复了可移动小窗口播放结束无法移动的问题 (2017-04-20)
上级
5bac38ce
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
6 deletion
+19
-6
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/GSYVideoPlayer.java
...rc/main/java/com/shuyu/gsyvideoplayer/GSYVideoPlayer.java
+6
-2
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/video/GSYBaseVideoPlayer.java
...va/com/shuyu/gsyvideoplayer/video/GSYBaseVideoPlayer.java
+4
-4
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/video/StandardGSYVideoPlayer.java
...om/shuyu/gsyvideoplayer/video/StandardGSYVideoPlayer.java
+9
-0
未找到文件。
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/GSYVideoPlayer.java
浏览文件 @
4a46ead2
...
...
@@ -488,10 +488,14 @@ public abstract class GSYVideoPlayer extends GSYBaseVideoPlayer implements View.
**/
@Override
protected
void
setSmallVideoTextureView
(
View
.
OnTouchListener
onTouchListener
)
{
mTextureView
.
setOnTouchListener
(
onTouchListener
);
mTextureView
Container
.
setOnTouchListener
(
onTouchListener
);
mProgressBar
.
setOnTouchListener
(
null
);
mFullscreenButton
.
setOnTouchListener
(
null
);
mTextureView
.
setOnClickListener
(
null
);
mFullscreenButton
.
setVisibility
(
INVISIBLE
);
mProgressBar
.
setVisibility
(
INVISIBLE
);
mCurrentTimeTextView
.
setVisibility
(
INVISIBLE
);
mTotalTimeTextView
.
setVisibility
(
INVISIBLE
);
mTextureViewContainer
.
setOnClickListener
(
null
);
mSmallClose
.
setVisibility
(
VISIBLE
);
mSmallClose
.
setOnClickListener
(
new
OnClickListener
()
{
@Override
...
...
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/video/GSYBaseVideoPlayer.java
浏览文件 @
4a46ead2
...
...
@@ -95,6 +95,10 @@ public abstract class GSYBaseVideoPlayer extends FrameLayout implements GSYMedia
protected
boolean
mCacheFile
=
false
;
//是否是缓存的文件
protected
boolean
mIsTouchWiget
=
true
;
//是否支持非全屏滑动触摸有效
protected
boolean
mIsTouchWigetFull
=
true
;
//是否支持全屏滑动触摸有效
protected
Context
mContext
;
protected
String
mOriginUrl
;
//原来的url
...
...
@@ -133,10 +137,6 @@ public abstract class GSYBaseVideoPlayer extends FrameLayout implements GSYMedia
protected
OrientationUtils
mOrientationUtils
;
//旋转工具类
protected
boolean
mIsTouchWiget
=
true
;
//是否支持非全屏滑动触摸有效
protected
boolean
mIsTouchWigetFull
=
true
;
//是否支持全屏滑动触摸有效
private
Handler
mHandler
=
new
Handler
();
/**
...
...
gsyVideoPlayer/src/main/java/com/shuyu/gsyvideoplayer/video/StandardGSYVideoPlayer.java
浏览文件 @
4a46ead2
...
...
@@ -634,6 +634,7 @@ public class StandardGSYVideoPlayer extends GSYVideoPlayer {
}
@Override
@SuppressWarnings
(
"ResourceType"
)
protected
void
showProgressDialog
(
float
deltaX
,
String
seekTime
,
int
seekTimePosition
,
String
totalTime
,
int
totalTimeDuration
)
{
super
.
showProgressDialog
(
deltaX
,
seekTime
,
seekTimePosition
,
totalTime
,
totalTimeDuration
);
if
(
mProgressDialog
==
null
)
{
...
...
@@ -821,11 +822,19 @@ public class StandardGSYVideoPlayer extends GSYVideoPlayer {
GSYBaseVideoPlayer
gsyBaseVideoPlayer
=
super
.
showSmallVideo
(
size
,
actionBar
,
statusBar
);
if
(
gsyBaseVideoPlayer
!=
null
)
{
StandardGSYVideoPlayer
gsyVideoPlayer
=
(
StandardGSYVideoPlayer
)
gsyBaseVideoPlayer
;
gsyVideoPlayer
.
setIsTouchWiget
(
false
);
//小窗口不能点击
gsyVideoPlayer
.
setStandardVideoAllCallBack
(
mStandardVideoAllCallBack
);
}
return
gsyBaseVideoPlayer
;
}
@Override
protected
void
setSmallVideoTextureView
(
View
.
OnTouchListener
onTouchListener
)
{
super
.
setSmallVideoTextureView
(
onTouchListener
);
//小窗口播放停止了也可以移动
mThumbImageViewLayout
.
setOnTouchListener
(
onTouchListener
);
}
/**
* 处理锁屏屏幕触摸逻辑
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录