Skip to content

[Bug] Player falls back to the highest resolution when the default resolution is unavailable #2196

@shchadilov

Description

@shchadilov

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

When the user sets the default resolution that YouTube is not able to provide player will use the highest resolution available. I think this is not expected as setting the default resolution can be used for data saving as much as for getting picture quality that is good enough. Choosing the available resolution nearest to the user setting is more logical in this context. An additional note can be added to the setting parameter in the UI.

Version

4.9.0

Frequency

Always (100% of the time)

Device

Android 12

Steps to reproduce the bug

  1. Set the default resolution in "Settings" \ "Player" \ "Default resolution" (for example: 240p)
  2. Open a video that has no variant of encoding with the default resolution that has been set (for example: this video has no 240p variant but only 144p, 360p and 720p https://www.youtube.com/watch?v=VPVuPrf8yrk)

RESULT:
The highest available resolution is chosen automatically (for example: 720p).

EXPECTED RESULT:
The nearest available value is chosen automatically (for example: 144p is chosen as ABS(240 - 144) < ABS(240 - 360).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions