fix(tv): stop playback behind menu

This commit is contained in:
edde746
2026-06-14 06:27:00 +02:00
parent 3ad049cb28
commit 349b5b0513
5 changed files with 47 additions and 6 deletions
@@ -3294,6 +3294,11 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
check(Looper.myLooper() == Looper.getMainLooper())
Log.d(TAG, "Disposing")
surfaceContainer?.let { container ->
container.visibility = View.INVISIBLE
Log.d(TAG, "Hiding surface container during dispose")
}
stopFrameWatchdog()
cancelDecoderHangCheck()
stopPositionUpdates()
@@ -813,6 +813,11 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
check(Looper.myLooper() == Looper.getMainLooper())
Log.d(TAG, "Disposing")
surfaceContainer?.let { container ->
container.visibility = View.INVISIBLE
Log.d(TAG, "Hiding surface container during dispose")
}
handler.removeCallbacksAndMessages(null)
// Clean up frame rate and audio focus.