mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-14 07:59:27 +01:00
fix(YouTube - SponsorBlock): Allow autoplay when skipping to the end of the video
This commit is contained in:
parent
dd045ad985
commit
3d660e1b5e
@ -135,10 +135,8 @@ public final class VideoInformation {
|
||||
public static boolean seekTo(final long millisecond) {
|
||||
final long videoLength = getVideoLength();
|
||||
|
||||
// Don't seek more than the video length to prevent issues such as
|
||||
// Play pause button or autoplay not working.
|
||||
// TODO: These are arbitrarily chosen values and should be subject to be adjusted.
|
||||
final long seekToMilliseconds = millisecond <= videoLength - 500 ? millisecond : millisecond - 100;
|
||||
// Prevent issues such as play/ pause button or autoplay not working.
|
||||
final long seekToMilliseconds = millisecond > videoLength ? Integer.MAX_VALUE : millisecond;
|
||||
|
||||
ReVancedUtils.verifyOnMainThread();
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user