Prevent uYou's playback from colliding with YouTube's
This commit is contained in:
@@ -159,6 +159,19 @@ static void refreshUYouAppearance() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Prevent uYou's playback from colliding with YouTube's
|
||||||
|
BOOL isYTPlaybackActive = NO;
|
||||||
|
%hook HAMPlayerInternal
|
||||||
|
- (void)play { %orig; isYTPlaybackActive = YES; }
|
||||||
|
- (void)terminate { %orig; isYTPlaybackActive = NO; }
|
||||||
|
%end
|
||||||
|
%hook PlayerManager
|
||||||
|
- (void)play {
|
||||||
|
if (isYTPlaybackActive) return;
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%ctor {
|
%ctor {
|
||||||
%init;
|
%init;
|
||||||
if (@available(iOS 16, *)) {
|
if (@available(iOS 16, *)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user