fix: MediaCodecRendererException when rotating screen

This commit is contained in:
Bnyro 2025-01-22 18:26:24 +01:00
parent c674f6113b
commit 5aced20fe9

View File

@ -1490,6 +1490,9 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
viewModel.isOrientationChangeInProgress = true
// detatch player view from player to stop surface rendering
binding.player.player = null
if (::playerController.isInitialized) playerController.release()
activity?.recreate()