Reset player error in PlayerState
This commit is contained in:
@@ -61,7 +61,7 @@ fun rememberPlayerState(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onPlaybackStateChanged(playbackState: Int) {
|
override fun onPlaybackStateChanged(playbackState: Int) {
|
||||||
playerState = playerState?.copy(playbackState = playbackState)
|
playerState = playerState?.copy(playbackState = playbackState, error = player.playerError)
|
||||||
|
|
||||||
if (playbackState == Player.STATE_READY) {
|
if (playbackState == Player.STATE_READY) {
|
||||||
isSeeking = false
|
isSeeking = false
|
||||||
|
|||||||
Reference in New Issue
Block a user