uYouLocal crash workaround
This commit is contained in:
@@ -37,6 +37,11 @@
|
|||||||
displayLanguage:(NSString *)displayLanguage;
|
displayLanguage:(NSString *)displayLanguage;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// uYouLocal fix
|
||||||
|
@interface YTLocalPlaybackController : NSObject
|
||||||
|
- (id)activeVideo;
|
||||||
|
@end
|
||||||
|
|
||||||
// BigYTMiniPlayer
|
// BigYTMiniPlayer
|
||||||
@interface YTMainAppVideoPlayerOverlayView : UIView
|
@interface YTMainAppVideoPlayerOverlayView : UIView
|
||||||
- (UIViewController *)_viewControllerForAncestor;
|
- (UIViewController *)_viewControllerForAncestor;
|
||||||
|
|||||||
@@ -177,6 +177,14 @@ BOOL ytMiniPlayer() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Workaround for https://github.com/MiRO92/uYou-for-YouTube/issues/140
|
||||||
|
%hook YTLocalPlaybackController
|
||||||
|
%new
|
||||||
|
- (id)activeVideoController {
|
||||||
|
return [self activeVideo];
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
||||||
%hook YTVideoQualitySwitchControllerFactory
|
%hook YTVideoQualitySwitchControllerFactory
|
||||||
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
||||||
|
|||||||
Reference in New Issue
Block a user