diff --git a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt index 2dbb1457..8e4e776b 100644 --- a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt +++ b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt @@ -60,6 +60,7 @@ class AnimPlayer(val animView: IAnimView) { fun onSurfaceTextureDestroyed() { isSurfaceAvailable = false + isStartRunning = false decoder?.destroy() audioPlayer?.destroy() } diff --git a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt index e5c4afaf..4a7961bd 100644 --- a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt +++ b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt @@ -182,7 +182,6 @@ open class AnimView @JvmOverloads constructor(context: Context, attrs: Attribute } player.isDetachedFromWindow = true player.onSurfaceTextureDestroyed() - onSizeChangedCalled = false }