forked from inotia00/revanced-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(youtube/integrations): allow playback of embedded videos (ReVance…
…d#2092) Co-authored-by: oSumAtrIX <[email protected]>
- Loading branch information
1 parent
ac4f491
commit 8a43d75
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...atches/youtube/misc/integrations/fingerprints/EmbeddedPlayerControlsOverlayFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package app.revanced.patches.youtube.misc.integrations.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patches.shared.integrations.patch.AbstractIntegrationsPatch.IntegrationsFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
object EmbeddedPlayerControlsOverlayFingerprint : IntegrationsFingerprint( | ||
access = AccessFlags.PRIVATE or AccessFlags.CONSTRUCTOR, | ||
returnType = "V", | ||
parameters = listOf("L", "L", "L"), | ||
customFingerprint = { methodDef -> | ||
methodDef.definingClass.startsWith("Lcom/google/android/apps/youtube/embeddedplayer/service/ui/overlays/controlsoverlay/remoteloaded/") | ||
}, | ||
contextRegisterResolver = { it.implementation!!.registerCount - it.parameters.size } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters