修复适配bug
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user