mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-04 00:24:34 +02:00
fix(youtube/sponsorblock): fix segments not skipping during background play
This commit is contained in:
parent
0195149811
commit
02d415103a
@ -17,6 +17,7 @@ import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
|
|||||||
import app.revanced.patches.youtube.misc.resourceid.patch.SharedResourceIdPatch
|
import app.revanced.patches.youtube.misc.resourceid.patch.SharedResourceIdPatch
|
||||||
import app.revanced.patches.youtube.misc.sponsorblock.bytecode.fingerprints.*
|
import app.revanced.patches.youtube.misc.sponsorblock.bytecode.fingerprints.*
|
||||||
import app.revanced.patches.youtube.misc.timebar.patch.HookTimebarPatch
|
import app.revanced.patches.youtube.misc.timebar.patch.HookTimebarPatch
|
||||||
|
import app.revanced.patches.youtube.misc.videoid.legacy.patch.LegacyVideoIdPatch
|
||||||
import app.revanced.patches.youtube.misc.videoid.mainstream.patch.MainstreamVideoIdPatch
|
import app.revanced.patches.youtube.misc.videoid.mainstream.patch.MainstreamVideoIdPatch
|
||||||
import app.revanced.util.bytecode.BytecodeHelper.injectInit
|
import app.revanced.util.bytecode.BytecodeHelper.injectInit
|
||||||
import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus
|
||||||
@ -31,6 +32,7 @@ import org.jf.dexlib2.iface.reference.MethodReference
|
|||||||
@Name("sponsorblock-bytecode-patch")
|
@Name("sponsorblock-bytecode-patch")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
|
LegacyVideoIdPatch::class,
|
||||||
MainstreamVideoIdPatch::class,
|
MainstreamVideoIdPatch::class,
|
||||||
PlayerControlsPatch::class,
|
PlayerControlsPatch::class,
|
||||||
PlayerTypeHookPatch::class,
|
PlayerTypeHookPatch::class,
|
||||||
@ -62,8 +64,9 @@ class SponsorBlockBytecodePatch : BytecodePatch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Inject MainstreamVideoIdPatch
|
* Inject VideoIdPatch
|
||||||
*/
|
*/
|
||||||
|
LegacyVideoIdPatch.injectCall("$INTEGRATIONS_PLAYER_CONTROLLER_CLASS_DESCRIPTOR->setCurrentVideoId(Ljava/lang/String;)V")
|
||||||
MainstreamVideoIdPatch.injectCall("$INTEGRATIONS_PLAYER_CONTROLLER_CLASS_DESCRIPTOR->setCurrentVideoId(Ljava/lang/String;)V")
|
MainstreamVideoIdPatch.injectCall("$INTEGRATIONS_PLAYER_CONTROLLER_CLASS_DESCRIPTOR->setCurrentVideoId(Ljava/lang/String;)V")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user