Merge pull request #5634 from FineFindus/fix/music-speed-reset

fix: set music playback speed only once
This commit is contained in:
Bnyro 2024-02-18 14:57:11 +01:00 committed by GitHub
commit 206479ce31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -312,9 +312,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
saveWatchPosition()
if (playbackState == Player.STATE_READY) {
if (streams.category == Streams.categoryMusic) {
exoPlayer.setPlaybackSpeed(1f)
}
}
// set the playback speed to one if having reached the end of a livestream
@ -988,6 +985,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}
setCurrentChapterName()
if (streams.category == Streams.categoryMusic) {
exoPlayer.setPlaybackSpeed(1f)
}
}
}
}