-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(YouTube - Background playback): Miniplayer does not play in background after playing a Short #3895
Comments
Fixing the first issue requires figuring out a better way to know if a Short is currently on screen and playing. The current approach fails for situations like this. The second issue of the missing audio only background playback button (headphones icon), appears to be a YouTube bug. |
@LisoUseInAIKyrios can you add a commit here to revert background playback for short.I will cherrypick and will build patches.rvp for test. |
Try reproducing the issue again, but before changing to background mode maximize the video to full screen (or maximize to the regular player, and not the miniplayer). If the regular video is not in miniplayer mode then background playback should behave correctly. This specific issue has been present for a long time and is not new. Reverting the Shorts background playback change won't fix this. |
The only way background playback works again if I play another video Edit: |
You can try reverting commit 7db1a77 but it will not fix this specific use case (going to background playback with miniplayer after opening a Short). This bug has been present for a long time. |
Due to update in patcher version after that commit i failed to revert it.(Not much knowledge about these) |
@LisoUseInAIKyrios Ohh right .Checked with old patch. But in new patch video stops play (not playing in pip atleast)when disable background for short. |
Another thing I got is I think its better to revert that. |
If you don't want background play then don't include the patch. When using the old patches you did not follow the same reproduction steps. This issue only shows up when:
If these exact steps are not followed, then the bug does not occur. This bug has been present for a long time. This thread is starting to turn into a loop of repeating the same information over and over. |
I implemented a hook to detect if the Shorts player view (R.id.reel_watch_player) is attached or detached from the Windows Since this is implemented as a listener, it can detect if the Shorts player is open or closed more quickly and accurately than the PlayerType hook I applied this to my patch a little over a month ago, and it seems to work fine with background playback patch (general video) and the hide Shorts navigation bar patch My patch was only tested on YouTube 19.16.39, so I haven't tested it on the latest YouTube |
Bug description
Way to trigger the bug:-(check video)
Disable short background playback.
Play any video. Keep it in Minimize mode.
Play a short.press back.
Resume the Minimize video.then video no longer play in background.
If short background playback enabled, video play in pip and there is no background button in pip screen for that video (not short video ) with same trigger.(See second photo)
Error logs
Solution
Removing pip for short may work.
Additional context
VID-20241111-WA0002.mp4
Acknowledgements
The text was updated successfully, but these errors were encountered: