mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-08-31 11:35:24 +02:00
fix(YouTube - SponsorBlock): Prevent autoplay from stopping to work
This commit is contained in:
parent
9394c512ba
commit
f4e2d56b18
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user