修改完成
This commit is contained in:
@@ -203,11 +203,14 @@
|
||||
[[QXRequset shareInstance] downloadVideoPlayerWithUrl:giftModel.play_image completion:^(BOOL result, NSString * _Nonnull fileName) {
|
||||
NSString *videoPath = [QXFileManager getGiftVideoPath:fileName];
|
||||
weakSelf.playerMp4View.hidden = NO;
|
||||
weakSelf.effectView.hidden = YES;
|
||||
[weakSelf.playerMp4View playHWDMP4:videoPath delegate:self];
|
||||
}];
|
||||
}else if ([giftModel.play_image hasSuffix:@"svg"] || [giftModel.play_image hasSuffix:@"svga"]) {
|
||||
__weak typeof(self)weakSelf = self;
|
||||
[[QXRequset shareInstance] downloadVideoPlayerWithUrl:giftModel.play_image completion:^(BOOL result, NSString * _Nonnull fileName) {
|
||||
weakSelf.playerMp4View.hidden = YES;
|
||||
weakSelf.effectView.hidden = NO;
|
||||
NSString *filePath = [QXFileManager getGiftVideoPath:fileName];
|
||||
[weakSelf.effectView loadSVGAPlayerWith:filePath];
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user