mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: set music playback speed only once
Fixes https://github.com/libre-tube/LibreTube/issues/5626. The playback speed for music videos was set to 1.0x on every event, instead of only once when starting the video.
This commit is contained in:
parent
48e46030b5
commit
fece82e8c3
@ -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…
x
Reference in New Issue
Block a user