fix(YouTube - Remove background playback restriction): Play/Pause button not working in PiP mode (Unpatched YouTube bug) https://github.com/inotia00/ReVanced_Extended/issues/2764

This commit is contained in:
inotia00 2025-02-10 17:51:39 +09:00
parent 3753ecb890
commit 0ece1b9aea
2 changed files with 16 additions and 0 deletions

View File

@ -97,6 +97,11 @@ val backgroundPlaybackPatch = bytecodePatch(
}
}
}
pipInputConsumerFeatureFlagFingerprint.injectLiteralInstructionBooleanCall(
PIP_INPUT_CONSUMER_FEATURE_FLAG,
"0x0"
)
}
// Force allowing background play for videos labeled for kids.

View File

@ -125,6 +125,17 @@ internal val backgroundPlaybackManagerCairoFragmentSecondaryFingerprint = legacy
),
)
internal const val PIP_INPUT_CONSUMER_FEATURE_FLAG = 45638483L
/**
* Fix 'E/InputDispatcher: Window handle pip_input_consumer has no registered input channel'
* Related with [ReVanced_Extended#2764](https://github.com/inotia00/ReVanced_Extended/issues/2764).
*/
internal val pipInputConsumerFeatureFlagFingerprint = legacyFingerprint(
name = "pipInputConsumerFeatureFlagFingerprint",
literals = listOf(PIP_INPUT_CONSUMER_FEATURE_FLAG),
)
internal const val SHORTS_BACKGROUND_PLAYBACK_FEATURE_FLAG = 45415425L
internal val shortsBackgroundPlaybackFeatureFlagFingerprint = legacyFingerprint(