mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
show resolution on auto quality
This commit is contained in:
parent
9ff7b08a86
commit
5f98cda835
@ -1021,6 +1021,12 @@ class PlayerFragment : Fragment() {
|
||||
override fun onVideoSizeChanged(
|
||||
videoSize: VideoSize
|
||||
) {
|
||||
// show the resolution in the video resolution text view
|
||||
if (playerBinding.qualityText.text == context?.getString(R.string.hls)) {
|
||||
playerBinding.qualityText.text =
|
||||
"${context?.getString(R.string.hls)} (${videoSize.height}p)"
|
||||
}
|
||||
|
||||
// Set new width/height of view
|
||||
// height or width must be cast to float as int/int will give 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user