fix: update play pause button on screen rotation

This commit is contained in:
Bnyro 2025-01-22 18:31:38 +01:00
parent 5aced20fe9
commit 3aa6242870

View File

@ -184,6 +184,12 @@ abstract class CustomExoPlayerView(
}
})
player?.let { player ->
binding.playPauseBTN.setImageResource(
PlayerHelper.getPlayPauseActionIcon(player)
)
}
player?.let { binding.exoProgress.setPlayer(it) }
// prevent the controls from disappearing while scrubbing the time bar
binding.exoProgress.addSeekBarListener(object : TimeBar.OnScrubListener {