Add new playback speed option of 2.5

This commit is contained in:
hairowits 2022-12-12 13:15:39 -08:00 committed by GitHub
parent 751175b3f9
commit e754ff3f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -434,10 +434,11 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
"1.4x",
"1.5x",
"1.75x",
"2x"
"2x",
"2.5x"
)
val speedsNumbers =
listOf(0.5f, 0.75f, 0.85f, 1f, 1.15f, 1.25f, 1.4f, 1.5f, 1.75f, 2f)
listOf(0.5f, 0.75f, 0.85f, 1f, 1.15f, 1.25f, 1.4f, 1.5f, 1.75f, 2f, 2.5f)
val speedIndex = speedsNumbers.indexOf(player.getPlaybackSpeed())
activity?.let { act ->
@ -1363,4 +1364,4 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
logError(e)
}
}
}
}