fix(YouTube Music - Spoof client): When the default client is Android Music, playback speed menu does not open

This commit is contained in:
inotia00
2025-02-10 16:25:56 +09:00
parent af447be6cc
commit 1f10fdbccd
6 changed files with 68 additions and 15 deletions

View File

@ -116,4 +116,19 @@ public class SpoofClientPatch extends BlockRequestPatch {
}
return original;
}
/**
* Injection point.
* <p>
* When spoofing the client to Android, the playback speed menu is missing from the player response.
* This fix is required because playback speed is not available in YouTube Music Podcasts.
* <p>
* Return false to force create the playback speed menu.
*/
public static boolean forceCreatePlaybackSpeedMenuInverse(boolean original) {
if (SPOOF_CLIENT) {
return false;
}
return original;
}
}