Skip to content

Commit

Permalink
Disable playback speed controls on iPad only
Browse files Browse the repository at this point in the history
  • Loading branch information
bhackel authored May 25, 2024
1 parent 333d512 commit efcede6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -1796,9 +1796,13 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"noSuggestedVideoAtEnd"];
}
// Broken uYou 3.0.2 setting: Playback Speed Controls
// Set default to disabled
if (![allKeys containsObject:@"showPlaybackRate"]) {
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showPlaybackRate"];
// Set default to disabled on iPads
if (![allKeys containsObject:@"showPlaybackRate"]) {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showPlaybackRate"];
} else {
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"showPlaybackRate"];
}
}
// Set video casting fix default to enabled
if (![allKeys containsObject:@"fixCasting_enabled"]) {
Expand Down

0 comments on commit efcede6

Please sign in to comment.