Merge pull request #931 from Bnyro/master

show resolution on auto quality
This commit is contained in:
Bnyro 2022-07-31 14:46:38 +02:00 committed by GitHub
commit bbe336b693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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