Skip to content

Bigger minimum default frame size for Popup player in relation to screen size (image attached) #13705

Description

Checklist

  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I'm aware that this is a request for NewPipe itself and that requests for adding a new service need to be made at NewPipeExtractor.
  • I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise.
  • This issue contains only one feature request.
  • I have read and understood the contribution guidelines.
  • I have read and understood the AI policy. The content of this request is not generated by AI.

Feature description

Bigger minimum size for the Popup player

Why do you want this feature?

relating to #12823 and #1652 just for obviously slightly other reasons personally

Image

Additional information

unnecessary source of problems and issues due to related dependecies on system capabilities and just why? xD

Activity

  1. added
    feature request
    needs triage
    on Jul 20, 2026
  2. changed the title [-]Bigger minimum frame size for Popup player in relation to screen size (image attached)[/-] [+]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/+] on Jul 20, 2026
  3. changed the title [-]Bigger minimum deafult frame size for Popup player in relation to screen size (image attached)[/-] [+]Bigger minimum default frame size for Popup player in relation to screen size (image attached)[/+] on Jul 20, 2026
  4. added
    player
    and removed
    needs triage
    on Oct 26, 2026
  5. added
    UX
    good first issue
    on Oct 26, 2026
  6. sakshichitnis27 commented on Nov 4, 2026

    @sakshichitnis27

    Hi! I'd like to try working on this one, if that's okay.

    I looked at the popup code. The starting width comes from popup_default_width (180dp, or 230dp on sw600dp and up) and doesn't depend on the screen size, so on large screens the popup ends up small (about 18% of the screen width in the screenshot). One idea would be to start at the larger of the current default and a fraction of the screen width, e.g. 1/4.

    Before I start on a PR, a few questions:

    1. CONTRIBUTING.md says only bugfix PRs are accepted right now. Is a PR for this welcome at the moment, or should I wait?
    2. Should this only change the size the popup starts with, or also the smallest size it can be resized to (popup_minimum_width)?
    3. Is 1/4 of the screen width a reasonable fraction, or would you prefer something else (1/4 and 1/2 were suggested in add the ability to resize the pop up window with 1 finger #1652)?

    One note: the popup size is saved whenever the popup is touched, so people who already have a saved size wouldn't see a different default. I assume that's fine, but I wanted to mention it.

  7. ShareASmile commented on Nov 5, 2026

    @ShareASmile
    Member

    Hi! I'd like to try working on this one, if that's okay.

    @sakshichitnis27 Sure, but please wait for the response from team developers about how to go about it.

  8. Stypox commented on Nov 5, 2026

    @Stypox
    Member
    1. I would say yes, this is a small enough change.
    2. I am not sure. I'd probably keep it popup_minimum_width as it is now. But try to play around with it in a large screen and see if it ever gets too small.
    3. I am not sure about this either, try it out and see what works. But 1/4 seems reasonable.

    The sw600dp override I guess was the previous mechanism to try to adapt to larger screen sizes, so remove it now if it's handled by the 1/4-of-the-screen rule. Thanks! I assigned you

  9. Plugdemholes-Imeanpatchdembugs commented on Nov 6, 2026

    @Plugdemholes-Imeanpatchdembugs
    Author

    Thanks for doing this @sakshichitnis27 🤗

    Just by pure coincidence I found this because I'm curious of what was changed brought the Android Versions.
    android-developers.googleblog.com/2025/01/orientation-and-resizability-changes-in-android-16.html?m=1
    And I guess that fits the context. sw600dp gets disgrarded now on very "Pixel rich" Screens in Android 16 and higher.
    Maybe that's a reason.
    Just wanted to mention it since I strumbled upon it. ^^

  10. sakshichitnis27 commented on Nov 10, 2026

    @sakshichitnis27

    Hi! A quick update, and one question before I open the PR.

    I tried the 1/4 rule locally: the popup now starts at the larger of the current default (180dp) and 1/4 of the screen width, and I removed the values-sw600dp popup_default_width override as you suggested. popup_minimum_width is unchanged.

    Starting width when there is no saved size, before and after:

    screen (dp) before after
    phone portrait 411x891 180dp 180dp
    phone landscape 891x411 180dp ~223dp
    tablet portrait 600x960 230dp 180dp
    tablet portrait 800x1280 230dp 200dp
    tablet landscape 1280x800 230dp 320dp
    desktop 1920x1080 230dp 480dp

    So phones in portrait are unchanged, and landscape phones and larger screens start bigger. Tablets in portrait would start smaller than today (and an unfolded foldable at 841x701dp goes from 230dp to ~210dp), because 1/4 of their width is below the old 230dp. Is that what you'd like, or should I keep 230dp as a lower bound on sw600dp? In that case only the portrait rows would go back to 230dp, and everything else stays the same.

    About popup_minimum_width: I didn't touch it. It is 160dp on sw600dp, which is about 12% of a 1280dp wide screen and 8% of a 1920dp wide one, so pinching down can get quite small on very wide screens. I haven't tried that on a real large screen yet.

    I haven't tested on a physical device or emulator yet. The numbers above come from running the popup sizing code at those screen sizes with Robolectric. I added a unit test for the width calculation, and the existing unit tests, lint and checkstyle pass locally.

  11. Plugdemholes-Imeanpatchdembugs commented on Nov 26, 2026

    @Plugdemholes-Imeanpatchdembugs
    Author

    Just dropping by to make sure none of the questions were adressed to me but @Stypox right? xD
    Got a bit quiet here. ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

UXfeature requestgood first issueplayer

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions