[android 10 adapter]
This commit is contained in:
yangyakun
2023-08-04 14:25:09 +08:00
committed by zhongchao
parent 911e9fe069
commit 6a01639c0f

View File

@@ -17,7 +17,6 @@ import android.widget.TextView
import androidx.appcompat.widget.AppCompatImageView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.app.ActivityCompat
import com.mogo.eagle.core.utilcode.util.ActivityUtils
import com.mogo.eagle.core.utilcode.util.TimeTransformUtils
import com.mogo.eagle.core.utilcode.util.ToastUtils
import com.mogo.eagle.core.widget.media.video.TextureVideoViewOutlineProvider
@@ -155,7 +154,9 @@ class ConsultVideoPlayer : StandardGSYVideoPlayer {
super.onWindowFocusChanged(hasWindowFocus)
if(isIfCurrentIsFullscreen&&smalllPlayer!=null){
if(hasWindowFocus){//获取焦点
//onVideoResume()
if (isInPlayingState && smalllPlayer!!.mCurrentState != CURRENT_STATE_PAUSE) {
onVideoResume()
}
}else{
onVideoPause()
}