updated submodules #213

Merged
arichornloverALT merged 1 commit from main into main 2024-07-04 12:28:59 +00:00
arichornloverALT commented 2024-07-04 12:28:42 +00:00 (Migrated from github.com)
No description provided.
arichornloverALT commented 2024-07-04 23:34:05 +00:00 (Migrated from github.com)

Fullscreen to the Right Untested (only works on iPhone)

// Disable Pull to Full for landscape videos - @bhackel
@interface YTWatchPullToFullController : NSObject
@property(nonatomic, strong) YTWatchViewController *playerViewSource;
@end
@interface YTWatchViewController (uYouEnhanced)
@property(nonatomic, strong) YTWatchPullToFullController *pullToFullController;
- (NSUInteger) allowedFullScreenOrientations;
// Fullscreen to the Right (uYouEnhanced/YTLitePlus Version) - @arichornlover
- (UIInterfaceOrientationMask) supportedInterfaceOrientations;
- (UIInterfaceOrientation) preferredInterfaceOrientationForPresentation;
- (void)forceRightFullscreenOrientation; // custom property
@end

// Fullscreen to the Right (iPhone-exclusive) - @arichornlover
// NOTE: Disable the “Portrait Fullscreen” Option while the code below is active.
%group gFullscreenToTheRight
%hook YTWatchViewController
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
    if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
        return UIInterfaceOrientationLandscapeRight;
    }
    return %orig;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
        return UIInterfaceOrientationMaskLandscape;
    }
    return %orig;
}
%new
- (void)forceRightFullscreenOrientation { // custom void
    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
        NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight];
        [[UIDevice currentDevice] setValue:value forKey:@"orientation"];
    }
}
%end
%end

I was gonna add this but can’t confirm if it will work or crash. I’ll add it in YTLitePlus’s nightly branch.

**Fullscreen to the Right** Untested (only works on iPhone) ``` // Disable Pull to Full for landscape videos - @bhackel @interface YTWatchPullToFullController : NSObject @property(nonatomic, strong) YTWatchViewController *playerViewSource; @end @interface YTWatchViewController (uYouEnhanced) @property(nonatomic, strong) YTWatchPullToFullController *pullToFullController; - (NSUInteger) allowedFullScreenOrientations; // Fullscreen to the Right (uYouEnhanced/YTLitePlus Version) - @arichornlover - (UIInterfaceOrientationMask) supportedInterfaceOrientations; - (UIInterfaceOrientation) preferredInterfaceOrientationForPresentation; - (void)forceRightFullscreenOrientation; // custom property @end // Fullscreen to the Right (iPhone-exclusive) - @arichornlover // NOTE: Disable the “Portrait Fullscreen” Option while the code below is active. %group gFullscreenToTheRight %hook YTWatchViewController - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { return UIInterfaceOrientationLandscapeRight; } return %orig; } - (UIInterfaceOrientationMask)supportedInterfaceOrientations { if ([self fullscreen] && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { return UIInterfaceOrientationMaskLandscape; } return %orig; } %new - (void)forceRightFullscreenOrientation { // custom void if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight]; [[UIDevice currentDevice] setValue:value forKey:@"orientation"]; } } %end %end ``` I was gonna add this but can’t confirm if it will work or crash. I’ll add it in YTLitePlus’s nightly branch.
Balackburn commented 2024-07-05 19:03:28 +00:00 (Migrated from github.com)

Thank you

Thank you
arichornloverALT commented 2024-07-05 19:34:41 +00:00 (Migrated from github.com)

It’s untested so I can’t confirm if it will be functional.
But I do know it won’t do anything iPad Devices.

It’s untested so I can’t confirm if it will be functional. But I do know it won’t do anything iPad Devices.
Sign in to join this conversation.
No description provided.