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

Commit

Permalink
fix(YouTube - Spoof client): Fix background playback issue with lives…
Browse files Browse the repository at this point in the history
…tream on iOS clients
  • Loading branch information
inotia00 authored and Francesco146 committed Aug 7, 2024
1 parent 51c71c3 commit 9bd14d2
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,18 @@ public static boolean forceCreatePlaybackSpeedMenu(boolean original) {
return original;
}

/**
* Injection point.
* This fix only works if {@link BackgroundPlaybackPatch} is included.
*/
public static boolean forceEnableBackgroundPlayback() {
if (SPOOF_CLIENT_ENABLED && getSpoofClientType() == ClientType.IOS) {
return BackgroundPlaybackPatch.playbackIsNotShort();
}

return false;
}

/**
* Injection point.
* When spoofing the client to Android TV the playback speed menu is missing from the player response.
Expand Down

0 comments on commit 9bd14d2

Please sign in to comment.