[Bug]: PiP Displays the Entire YouTube Interface and In-App Mini Player Gets Stuck
Checklist
- [x] I searched the open and closed issues and this isn't there yet.
- [x] This issue is about one bug.
MeTube version
3.1.1 Spectre
Phone or tablet, and Android version
Pixel 9a
Signed in to a Google account?
Yes
Network when it happened
Wi-Fi
What happened
Description
There are multiple playback issues when minimizing videos, switching between meTube and the home screen, and reopening the app.
Steps to Reproduce
- Open meTube and play any video.
- Return to the Android home screen while the video is playing in mini player.
- Observe the PiP window.
- Reopen meTube and check whether playback continues in the background.
- Play a video again, then press Back or minimize it to the in-app mini player.
Actual Behavior
- Incorrect PiP UI: The floating PiP window displays the entire YouTube interface, including navigation elements, instead of showing only the video.
- Unexpected background playback: When reopening meTube, the PiP window disappears, but playback continues in the background.
- Stuck mini player: Pressing Back or minimizing a video sometimes leaves the in-app mini player stuck at the top of the screen. It cannot be repositioned normally and can only be dismissed by swiping it away.
Expected Behavior
- PiP should display only the video content with appropriate playback controls, not the entire YouTube interface.
- Reopening meTube should handle the existing PiP session and playback state correctly, without leaving hidden or unexpected background playback.
- The in-app mini player should appear in its intended position, remain responsive, and support normal dismissal and repositioning.
Impact
These issues make video playback, multitasking, and navigation inconsistent and frustrating.
Possible Areas to Investigate
- Android PiP activity configuration and lifecycle handling.
- Playback session synchronization when returning to the app.
- Mini player positioning, drag gestures, and dismissal state.
https://github.com/user-attachments/assets/bbc1468c-3c2a-44fb-81f9-1e917150cfd3
Video link
No response
Diagnostic log
No response
Anything else
No response
Weird Issue... I got two devices and both got this right without issues
will fix in next update though, thanks for letting me know :)
Weird Issue... I got two devices and both got this right without issues
will fix in next update though, thanks for letting me know :)
Before posting issue I checked on another device unfortunately I faced same issue. Thanks. Always up for helping devs :)
Sorted both parts of this. Picture-in-picture now shows just the video instead of the whole app, and going back from picture-in-picture no longer crashes or leaves the mini player stuck.
It's out in 3.1.5 Orizon, or update from Settings > About > Check for updates. If it still acts up for you, let me know here and I'll reopen it.
Thanks for continuing to fix the bugs, but unfortunately the same behavior is happening again. Attached screenshots please take a look. Ver 3.1.5