-
-
Notifications
You must be signed in to change notification settings - Fork 282
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: Sponsor block skipping not working properly in background mode #1253
Comments
I tried with a video minimized and playing in picture in picture mode, and tried with the screen turned on and turned off. I cannot reproduce this. For me segments skip correctly in all situations. |
It happens when in My mix/playlists (music videos). PIP is disabled, purely background mode. Also using a Google Pixel 7 pro. Using all the working patches too. Skipping works fine when the app is open. When put into background mode then skipping seems all over the place between videos. |
I still don't see the issue when using playlists. Does the intro skip happen, but it's delayed and the video plays a few seconds and then it skips? Or is the intro segments very short (less than 5 seconds)? Because it's normal for intro segments to play a few seconds before they skip. The video starts playing, before the client receives the segments from the sponsorblock API. When in background mode a video starts playing much faster (since it's only audio that's transferring), and that would exaggerate the problem. |
Does the intro skip happen, but it's delayed and the video plays a few seconds and then it skip. This does happen sometimes but for me it's not skipping at all until I open the screen to watch the video, then the toast comes and skips. Also, when it doesn't skip and you leave it playing it starts skipping on the next video when it shouldn't be skipping. It's definitely exaggerated a lot more in background mode. I only see this behaviour in 18+ versions of the app. 17 is perfectly fine. It's just weird it's fine in 17 and different in 18. For example put this video in a playlist, play something before it and switch to background mode. Skip to next to play this video, the whole start does not skip until you open the app to view on screen. On 17+ version works totally fine. https://youtu.be/dZ0fwJojhrs |
I was able to reproduce the issue. The problem shows up only when playing in the background without any video visible (the screen entirely off, or screen is on and video is playing in the background without picture in picture). The problem is from the changes made to add ReturnYouTubeDislike support for Shorts. The video id hook is called, only if the video is visible. Since the video id hook is not called, SponsorBlock never loads. Since SponsorBlock doesn't work with Shorts, the old video id patch could be brought back and used only for SponsorBlock (and use the new video id patch for everything else) |
Thanks for the fix will test once added to main |
Tested and looks fixed now. Thanks |
# [2.143.0-dev.1](ReVanced/revanced-patches@v2.142.0...v2.143.0-dev.1) (2022-12-13) ### Features * **sleepasandroid:** remove `unlock-premium` patch ([ReVanced#1253](ReVanced/revanced-patches#1253)) ([414f503](ReVanced/revanced-patches@d56241a))
# [2.143.0](ReVanced/revanced-patches@v2.142.0...v2.143.0) (2022-12-14) ### Bug Fixes * **predictive-back-gesture:** create attribute, if it does not exist ([c00e771](ReVanced/revanced-patches@8b4a5b8)) ### Features * **sleepasandroid:** remove `unlock-premium` patch ([ReVanced#1253](ReVanced/revanced-patches#1253)) ([414f503](ReVanced/revanced-patches@d56241a))
Type
Other
Bug description
Version: 18.05.40
Sponsorblock skipping when in background playback mode not working correctly. It doesn't skip in correct places on the videos, sometimes not even skipping.
When the app is open, not in background mode, skips are working correctly.
All sponsorblock settings are skip automatically.
Previous version 17.49.37 works fine.
Steps to reproduce
Select videos with sponsorblock skips at beginning of videos etc. Switch screen off and play YouTube in background mode. Skips not happening correctly.
Relevant log output
Screenshots or videos
No response
Solution
Use a previous version 17.49.37
Additional context
No response
Acknowledgements
The text was updated successfully, but these errors were encountered: