[5.0.0]
[视频问题]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user