[视频问题]
This commit is contained in:
yangyakun
2023-08-15 20:40:10 +08:00
parent a179455979
commit 6e9c741540

View File

@@ -148,9 +148,11 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
override fun onWindowFocusChanged(hasWindowFocus: Boolean) {
super.onWindowFocusChanged(hasWindowFocus)
if(isIfCurrentIsFullscreen&&smalllPlayer!=null){
if(hasWindowFocus){//获取焦点
onVideoResume()
}else{
if (hasWindowFocus) {//获取焦点
if (isInPlayingState && smalllPlayer!!.mCurrentState != CURRENT_STATE_PAUSE) {
onVideoResume()
}
} else {
onVideoPause()
}
}
@@ -392,6 +394,8 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
}
}
}
// 点击视频不展示状态栏
gsyVideoPlayer.isHideKey = false
gsyVideoPlayer.smalllPlayer = this
frameLayout.setBackgroundColor(Color.BLACK)
val lp = LayoutParams(width, height)