Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix(YouTube/Spoof client): restore playback speed menu when spoofing …
Browse files Browse the repository at this point in the history
…to an iOS, Android TV, Android Testsuite client
  • Loading branch information
inotia00 authored and anddea committed Jun 11, 2024
1 parent 591774d commit fcc7510
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,32 @@ public static boolean enablePlayerGesture(boolean original) {
return SPOOF_CLIENT_ENABLED || original;
}

/**
* Injection point.
* When spoofing the client to iOS or Android Testsuite the playback speed menu is missing from the player response.
* Return true to force create the playback speed menu.
*/
public static boolean forceCreatePlaybackSpeedMenu(boolean original) {
if (SPOOF_CLIENT_ENABLED) {
return true;
}

return original;
}

/**
* Injection point.
* When spoofing the client to Android TV the playback speed menu is missing from the player response.
* Return false to force create the playback speed menu.
*/
public static boolean forceCreatePlaybackSpeedMenuReversed(boolean original) {
if (SPOOF_CLIENT_ENABLED) {
return false;
}

return original;
}

/**
* Injection point.
*/
Expand Down

0 comments on commit fcc7510

Please sign in to comment.