mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-11 12:04:39 +02:00
fix(protobuf-spoof): subtitles are on top https://github.com/inotia00/ReVanced_Extended/issues/875
This commit is contained in:
parent
0448b8aea0
commit
0b07fc8719
@ -18,7 +18,7 @@ import app.revanced.patches.shared.annotation.YouTubeCompatibility
|
|||||||
import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
|
import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
|
||||||
import app.revanced.patches.youtube.misc.protobufpoof.fingerprints.*
|
import app.revanced.patches.youtube.misc.protobufpoof.fingerprints.*
|
||||||
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
|
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
|
||||||
import app.revanced.patches.youtube.misc.videoid.legacy.patch.LegacyVideoIdPatch
|
import app.revanced.patches.youtube.misc.videoid.mainstream.patch.MainstreamVideoIdPatch
|
||||||
import app.revanced.util.integrations.Constants.MISC_PATH
|
import app.revanced.util.integrations.Constants.MISC_PATH
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@ -26,7 +26,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH
|
|||||||
@Description("Spoofs the protobuf to prevent playback issues.")
|
@Description("Spoofs the protobuf to prevent playback issues.")
|
||||||
@DependsOn(
|
@DependsOn(
|
||||||
[
|
[
|
||||||
LegacyVideoIdPatch::class,
|
MainstreamVideoIdPatch::class,
|
||||||
PlayerTypeHookPatch::class,
|
PlayerTypeHookPatch::class,
|
||||||
SettingsPatch::class
|
SettingsPatch::class
|
||||||
]
|
]
|
||||||
@ -83,7 +83,7 @@ class ProtobufSpoofPatch : BytecodePatch(
|
|||||||
) ?: return SubtitleWindowFingerprint.toErrorResult()
|
) ?: return SubtitleWindowFingerprint.toErrorResult()
|
||||||
|
|
||||||
// Hook video id, required for subtitle fix.
|
// Hook video id, required for subtitle fix.
|
||||||
LegacyVideoIdPatch.injectCall("$MISC_PATH/ProtobufSpoofPatch;->setCurrentVideoId(Ljava/lang/String;)V")
|
MainstreamVideoIdPatch.injectCall("$MISC_PATH/ProtobufSpoofPatch;->setCurrentVideoId(Ljava/lang/String;)V")
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add settings
|
* Add settings
|
||||||
|
Loading…
x
Reference in New Issue
Block a user