minor improvements

This commit is contained in:
Bnyro 2022-08-26 09:08:29 +02:00
parent f9cdd2da5f
commit 7581985705

View File

@ -604,7 +604,8 @@ class PlayerFragment : BaseFragment() {
context.getString(R.string.none)
}
// set the playback speed
currentPlaybackSpeed = "${exoPlayer.playbackParameters.speed}x"
currentPlaybackSpeed = "${exoPlayer.playbackParameters.speed.toString()
.replace(".0", "")}x"
// set the quality text
val isAdaptive = exoPlayer.videoFormat?.codecs != null
val quality = exoPlayer.videoSize.height