mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-06-12 21:27:37 +02:00
fix(YouTube - SponsorBlock): Prevent autoplay from stopping to work
This commit is contained in:
@ -136,7 +136,7 @@ public final class VideoInformation {
|
||||
final long videoLength = getVideoLength();
|
||||
|
||||
// Prevent issues such as play/ pause button or autoplay not working.
|
||||
final long seekToMilliseconds = millisecond > videoLength ? Integer.MAX_VALUE : millisecond;
|
||||
final long seekToMilliseconds = Math.min(millisecond, VideoInformation.getVideoLength() - 250);
|
||||
|
||||
ReVancedUtils.verifyOnMainThread();
|
||||
try {
|
||||
|
Reference in New Issue
Block a user