[代码回滚]
This commit is contained in:
yangyakun
2023-08-28 14:42:25 +08:00
parent 619e549664
commit 9ac435a36d

View File

@@ -1,5 +1,6 @@
package com.mogo.eagle.core.widget.media.video
import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.Surface
@@ -150,8 +151,13 @@ class SimpleVideoPlayer : StandardGSYVideoPlayer {
isPostBufferUpdate = false
}
@Suppress("SENSELESS_COMPARISON")
private var runnable = object :Runnable {
override fun run() {
// 外层对象倍回收 延时继续运行 慎重删除
if(this@SimpleVideoPlayer==null){
return
}
updateTimer++
postDelayed(this, 1000)
if (updateTimer >= 3) {