Skip to content

TimeBar is missing scrubber after return from PiP (StyledPlayerView) #8646

@moneytoo

Description

@moneytoo

When I enter and leave Picture-in-Picture mode, the TimeBar in StyledPlayerView is missing its scrubber (thumb). When I hide and show the controller by tapping the screen, only partial scrubber is displayed.

Steps to reproduce:

  1. Open a video file from a file manager in Demo app
  2. Pres system "Home" button to enter PiP
  3. Tap the PiP window and switch back to the full screen activity
  4. See the scrubber

I only hide and restore controls depending on PiP state. Full demo Activity.

    @Override
    public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
        super.onPictureInPictureModeChanged(isInPictureInPictureMode);

        if (isInPictureInPictureMode) {
            playerView.hideController();
        } else {
            playerView.showController();
        }
    }

    @Override
    protected void onUserLeaveHint() {
        enterPictureInPictureMode();
    }
  • ExoPlayer version number: 2.13.2
  • Android version: Android 10
  • Android device: OnePlus 7

Bugreport: bugreport-OnePlus7-QKQ1.190716.003-2021-02-28-15-33-59.zip

Screenshot_20210228-151552

Screenshot_20210228-151657

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions