Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ac13
GSYVideoPlayer
提交
0549b944
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 搜索 >>
提交
0549b944
编写于
2月 05, 2018
作者:
S
shuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix demo
上级
3d0e60a9
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
19 deletion
+23
-19
app/src/main/java/com/example/gsyvideoplayer/DanmkuVideoActivity.java
.../java/com/example/gsyvideoplayer/DanmkuVideoActivity.java
+1
-1
app/src/main/java/com/example/gsyvideoplayer/DetailMoreTypeActivity.java
...va/com/example/gsyvideoplayer/DetailMoreTypeActivity.java
+1
-1
app/src/main/java/com/example/gsyvideoplayer/DetailPlayer.java
...rc/main/java/com/example/gsyvideoplayer/DetailPlayer.java
+1
-1
app/src/main/java/com/example/gsyvideoplayer/InputUrlDetailActivity.java
...va/com/example/gsyvideoplayer/InputUrlDetailActivity.java
+1
-1
app/src/main/java/com/example/gsyvideoplayer/ScrollingActivity.java
...in/java/com/example/gsyvideoplayer/ScrollingActivity.java
+1
-1
app/src/main/java/com/example/gsyvideoplayer/adapter/ListNormalAdapter.java
...com/example/gsyvideoplayer/adapter/ListNormalAdapter.java
+1
-1
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/GSYBaseADActivityDetail.java
...ava/com/shuyu/gsyvideoplayer/GSYBaseADActivityDetail.java
+1
-1
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/GSYBaseActivityDetail.java
.../java/com/shuyu/gsyvideoplayer/GSYBaseActivityDetail.java
+1
-1
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYBaseVideoPlayer.java
...m/shuyu/gsyvideoplayer/video/base/GSYBaseVideoPlayer.java
+15
-11
未找到文件。
app/src/main/java/com/example/gsyvideoplayer/DanmkuVideoActivity.java
浏览文件 @
0549b944
...
...
@@ -175,7 +175,7 @@ public class DanmkuVideoActivity extends AppCompatActivity {
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
danmakuVideoPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
danmakuVideoPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
true
,
true
);
}
}
...
...
app/src/main/java/com/example/gsyvideoplayer/DetailMoreTypeActivity.java
浏览文件 @
0549b944
...
...
@@ -205,7 +205,7 @@ public class DetailMoreTypeActivity extends AppCompatActivity {
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
true
,
true
);
}
//竖屏全屏
orientationUtils
.
setEnable
(
false
);
...
...
app/src/main/java/com/example/gsyvideoplayer/DetailPlayer.java
浏览文件 @
0549b944
...
...
@@ -226,7 +226,7 @@ public class DetailPlayer extends AppCompatActivity {
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
true
,
true
);
}
}
...
...
app/src/main/java/com/example/gsyvideoplayer/InputUrlDetailActivity.java
浏览文件 @
0549b944
...
...
@@ -173,7 +173,7 @@ public class InputUrlDetailActivity extends AppCompatActivity {
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
true
,
true
);
}
}
...
...
app/src/main/java/com/example/gsyvideoplayer/ScrollingActivity.java
浏览文件 @
0549b944
...
...
@@ -190,7 +190,7 @@ public class ScrollingActivity extends AppCompatActivity {
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
detailPlayer
.
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
true
,
true
);
}
}
...
...
app/src/main/java/com/example/gsyvideoplayer/adapter/ListNormalAdapter.java
浏览文件 @
0549b944
...
...
@@ -283,7 +283,7 @@ public class ListNormalAdapter extends BaseAdapter {
public
void
onConfigurationChanged
(
Activity
activity
,
Configuration
newConfig
)
{
//如果旋转了就全屏
if
(
isPlay
&&
curPlayer
!=
null
&&
orientationUtils
!=
null
)
{
curPlayer
.
onConfigurationChanged
(
activity
,
newConfig
,
orientationUtils
);
curPlayer
.
onConfigurationChanged
(
activity
,
newConfig
,
orientationUtils
,
false
,
true
);
}
}
...
...
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/GSYBaseADActivityDetail.java
浏览文件 @
0549b944
...
...
@@ -142,7 +142,7 @@ public abstract class GSYBaseADActivityDetail<T extends GSYBaseVideoPlayer, R ex
if
(!
isPause
&&
getGSYADVideoPlayer
().
getVisibility
()
==
View
.
VISIBLE
)
{
if
(
isADStarted
())
{
isPlay
=
false
;
getGSYADVideoPlayer
().
getCurrentPlayer
().
onConfigurationChanged
(
this
,
newConfig
,
mADOrientationUtils
);
getGSYADVideoPlayer
().
getCurrentPlayer
().
onConfigurationChanged
(
this
,
newConfig
,
mADOrientationUtils
,
hideActionBarWhenFull
(),
hideStatusBarWhenFull
()
);
}
}
super
.
onConfigurationChanged
(
newConfig
);
...
...
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/GSYBaseActivityDetail.java
浏览文件 @
0549b944
...
...
@@ -108,7 +108,7 @@ public abstract class GSYBaseActivityDetail<T extends GSYBaseVideoPlayer> extend
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
isPlay
&&
!
isPause
)
{
getGSYVideoPlayer
().
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
);
getGSYVideoPlayer
().
onConfigurationChanged
(
this
,
newConfig
,
orientationUtils
,
hideActionBarWhenFull
(),
hideStatusBarWhenFull
()
);
}
}
...
...
gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYBaseVideoPlayer.java
浏览文件 @
0549b944
...
...
@@ -455,11 +455,25 @@ public abstract class GSYBaseVideoPlayer extends GSYVideoControlView {
* @param orientationUtils 旋转工具类
*/
public
void
onConfigurationChanged
(
Activity
activity
,
Configuration
newConfig
,
OrientationUtils
orientationUtils
)
{
onConfigurationChanged
(
activity
,
newConfig
,
orientationUtils
,
true
,
true
);
}
/**
* 旋转处理
*
* @param activity 页面
* @param newConfig 配置
* @param orientationUtils 旋转工具类
* @param hideActionBar 是否隐藏actionbar
* @param hideStatusBar 是否隐藏statusbar
*/
public
void
onConfigurationChanged
(
Activity
activity
,
Configuration
newConfig
,
OrientationUtils
orientationUtils
,
boolean
hideActionBar
,
boolean
hideStatusBar
)
{
super
.
onConfigurationChanged
(
newConfig
);
//如果旋转了就全屏
if
(
newConfig
.
orientation
==
ActivityInfo
.
SCREEN_ORIENTATION_USER
)
{
if
(!
isIfCurrentIsFullscreen
())
{
startWindowFullscreen
(
activity
,
true
,
true
);
startWindowFullscreen
(
activity
,
hideActionBar
,
hideStatusBar
);
}
}
else
{
//新版本isIfCurrentIsFullscreen的标志位内部提前设置了,所以不会和手动点击冲突
...
...
@@ -473,16 +487,6 @@ public abstract class GSYBaseVideoPlayer extends GSYVideoControlView {
}
/**
* 利用window层播放全屏效果
*
* @param context
*/
@SuppressWarnings
(
"ResourceType, unchecked"
)
public
GSYBaseVideoPlayer
startWindowFullscreen
(
final
Context
context
)
{
return
startWindowFullscreen
(
context
,
mActionBar
,
mStatusBar
);
}
/**
* 利用window层播放全屏效果
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录