修复适配bug

This commit is contained in:
liyuhua
2024-04-19 11:57:52 +08:00
parent cd9a7518d7
commit c638ebbc02
10 changed files with 50 additions and 10 deletions

View File

@@ -2069,9 +2069,12 @@
self.giftEffectView.clearsAfterStop = YES;
self.giftEffectView.videoItem = videoItem;
[self.giftEffectView startAnimation];
return;
}
self.isLargeGiftAnimating = NO;
} failureBlock:^(NSError * _Nonnull error) {
self.giftEffectView.hidden = YES;
self.isLargeGiftAnimating = NO;
}];
return;
@@ -2106,9 +2109,12 @@
self.giftEffectView.clearsAfterStop = YES;
self.giftEffectView.videoItem = videoItem;
[self.giftEffectView startAnimation];
return;
}
self.isLargeGiftAnimating = NO;
} failureBlock:^(NSError * _Nullable error) {
self.giftEffectView.hidden = YES;
self.isLargeGiftAnimating = NO;
}];
}
/// pag
@@ -2437,6 +2443,11 @@
}
});
}
- (void)viewDidFailPlayMP4:(NSError *)error{
if (self.isLargeGiftAnimating == YES) {
self.isLargeGiftAnimating = NO;
}
}
#pragma mark - PAGViewListener
/**
* Notifies the beginning of the animation. It can be called from either the UI thread or the thread