Merge pull request #7003 from Bnyro/master

fix: MediaCodecRendererException when rotating screen
This commit is contained in:
Bnyro 2025-01-22 18:26:55 +01:00 committed by GitHub
commit 7889d603a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()