提交
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
@property (nonatomic, assign) BOOL isLoadEffect;
|
||||
@property (nonatomic, strong) QXRoomChatListModel *playModel;
|
||||
@property (nonatomic, assign) BOOL isPlaying;
|
||||
@property (nonatomic, assign) BOOL isBackground;
|
||||
@end
|
||||
@implementation QXCPEffectView
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
@@ -70,6 +71,9 @@
|
||||
}];
|
||||
}
|
||||
-(void)displayCpEffectUrl:(QXRoomChatListModel *)model{
|
||||
if (self.isBackground) {
|
||||
return;
|
||||
}
|
||||
NSString *play_image = model.rights_icon;
|
||||
dispatch_async(self.queue, ^{
|
||||
/// 如果play_image不存在return
|
||||
@@ -99,6 +103,7 @@
|
||||
});
|
||||
}
|
||||
-(void)stopPlay{
|
||||
self.isBackground = YES;
|
||||
// [self removeSvgaQueueData];
|
||||
self.isLoadEffect = NO;
|
||||
[self.svagView stopEffectSvgaPlay];
|
||||
@@ -107,10 +112,11 @@
|
||||
// [self.alphaVideoView stop];
|
||||
self.playerMp4View.hidden = YES;
|
||||
self.svagView.hidden = YES;
|
||||
|
||||
[self hideEffect];
|
||||
}
|
||||
|
||||
-(void)startPlay{
|
||||
self.isBackground = NO;
|
||||
[self loadStartSVGAPlayer];
|
||||
}
|
||||
-(void)viewDidFinishPlayMP4:(NSInteger)totalFrameCount view:(VAPView *)container{
|
||||
|
||||
Reference in New Issue
Block a user