mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-08 05:20:54 +00:00
parent
4fcb13d3aa
commit
076967ab94
1 changed files with 27 additions and 0 deletions
|
|
@ -325,6 +325,33 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
|||
}
|
||||
%end
|
||||
|
||||
// Fixes uYou crash when trying to play video (#1422)
|
||||
@interface YTVarispeedSwitchController : NSObject
|
||||
@end
|
||||
|
||||
@interface YTPlayerOverlayManager : NSObject
|
||||
@property (nonatomic, assign) float currentPlaybackRate;
|
||||
@property (nonatomic, strong, readonly) YTVarispeedSwitchController *varispeedController;
|
||||
|
||||
- (void)varispeedSwitchController:(YTVarispeedSwitchController *)varispeed didSelectRate:(float)rate;
|
||||
- (void)setCurrentPlaybackRate:(float)rate;
|
||||
- (void)setPlaybackRate:(float)rate;
|
||||
@end
|
||||
|
||||
%hook YTPlayerOverlayManager
|
||||
%property (nonatomic, assign) float currentPlaybackRate;
|
||||
|
||||
%new
|
||||
- (void)setCurrentPlaybackRate:(float)rate {
|
||||
[self varispeedSwitchController:self.varispeedController didSelectRate:rate];
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)setPlaybackRate:(float)rate {
|
||||
[self varispeedSwitchController:self.varispeedController didSelectRate:rate];
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide search ads by @PoomSmart - https://github.com/PoomSmart/YouTube-X
|
||||
// %hook YTIElementRenderer
|
||||
// - (NSData *)elementData {
|
||||
|
|
|
|||
Loading…
Reference in a new issue