mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-07 18:10:31 +05:30
Merge pull request #5634 from FineFindus/fix/music-speed-reset
fix: set music playback speed only once
This commit is contained in:
commit
206479ce31
@ -312,9 +312,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
saveWatchPosition()
|
saveWatchPosition()
|
||||||
|
|
||||||
if (playbackState == Player.STATE_READY) {
|
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
|
// set the playback speed to one if having reached the end of a livestream
|
||||||
@ -988,6 +985,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setCurrentChapterName()
|
setCurrentChapterName()
|
||||||
|
|
||||||
|
if (streams.category == Streams.categoryMusic) {
|
||||||
|
exoPlayer.setPlaybackSpeed(1f)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user