refactor: improve player lifecycle
This commit is contained in:
+2
@@ -79,9 +79,11 @@ internal class AndroidAudioPlayer(
|
||||
|
||||
override fun stop() {
|
||||
player.stop()
|
||||
_playbackState.value = PlaybackState.IDLE
|
||||
}
|
||||
|
||||
override fun release() {
|
||||
player.release()
|
||||
_playbackState.value = PlaybackState.IDLE
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user