make exoplayer be recreatable

This commit is contained in:
Christian Schabesberger 2024-09-11 16:34:01 +02:00
parent 4fb5d46b2d
commit 4de5568b7b
1 changed files with 3 additions and 0 deletions

View File

@ -276,6 +276,9 @@ class NewPlayerImpl(
playBackMode.update { playBackMode.update {
PlayMode.IDLE PlayMode.IDLE
} }
mutableExoPlayer.update {
null
}
} }
private fun internalPlayStream(mediaItem: MediaItem, playMode: PlayMode) { private fun internalPlayStream(mediaItem: MediaItem, playMode: PlayMode) {