Skip to content

Video shrinks in landscape when a settings panel is open #29

Description

@CodeSculptor

Description

When a video is playing in landscape fullscreen and a settings panel is opened (Video speed, Quality, Captions, etc.), the player SurfaceView resizes — the video shrinks to occupy only part of the screen and black bars appear around it.

The video returns to full size as soon as the panel is dismissed.

Root cause

The settings dialog activity (MobileAppDialogActivity) uses a translucent window (windowIsTranslucent) so the video stays visible behind a dim scrim. However, the player runs with FLAG_FULLSCREEN | FLAG_TRANSLUCENT_NAVIGATION (nav bar hidden), and the dialog window doesn't carry those same flags in all configurations. When the dialog appears, the system re-shows the navigation bar, which resizes the app window and shrinks the SurfaceView.

Impact

  • Portrait playback: unaffected — the nav bar is already shown in portrait.
  • Landscape fullscreen: video shrinks while the panel is open; returns to full size on dismiss.
  • No crash, no data loss. The panel itself works correctly; this is a cosmetic/UX regression.

Workaround

Dismiss the settings panel quickly — the video returns to full size immediately.

Planned fix

Match the player's FLAG_FULLSCREEN | FLAG_TRANSLUCENT_NAVIGATION flags on the dialog window when opening in landscape, so the system doesn't resize the app window. Investigation ongoing.

Introduced

v0.4.2-beta.8+st31.94 — settings panels changed from full-screen activities to translucent bottom-sheet cards.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions