Files
midi_ios/QXLive/HomePage(声播)/View/礼物/QXGiftPlayerManager.h

56 lines
1.4 KiB
C
Raw Normal View History

2025-08-14 10:07:49 +08:00
//
// QXGiftPlayer.h
// QXLive
//
// Created by 启星 on 2025/5/8.
//
#import <Foundation/Foundation.h>
#import "UIView+VAP.h"
#import "QXGiftModel.h"
NS_ASSUME_NONNULL_BEGIN
@class QXEffectContentView;
@interface QXGiftPlayerManager : NSObject
+ (instancetype)shareManager;
- (UIView *)defaultBgEffectView;
/// 礼物、坐骑【全屏位置】特效
- (QXEffectContentView *)defaultFullEffectView;
/// 坐骑【公屏信息流位置】特效
- (QXEffectContentView *)defaultChatEffectView;
/// 礼物、坐骑【全屏位置】特效 加载
2025-09-15 18:20:22 +08:00
- (void)displayFullEffectView:(NSString *)gift;
2025-08-14 10:07:49 +08:00
2025-09-19 11:38:43 +08:00
/// 礼物数组
- (void)displayFullEffectViewWithMorePlayImages:(NSArray *)playImages;
2025-08-14 10:07:49 +08:00
/// 坐骑【公屏信息流位置】特效 加载
2025-09-15 18:20:22 +08:00
- (void)displayChatEffectView:(NSString *)gift;
2025-08-14 10:07:49 +08:00
/// 关闭打开动效
- (void)openOrCloseEffectViewWith:(BOOL)isShow;
/// 销毁
- (void)destroyEffectSvga;
-(void)stopPlay;
2025-09-19 11:38:43 +08:00
-(void)startPlay;
2025-08-14 10:07:49 +08:00
@end
@interface QXEffectContentView : UIView
2025-09-23 09:13:16 +08:00
@property (nonatomic,assign) BOOL isShow;
@property (nonatomic,assign) BOOL isOnece;
2025-08-14 10:07:49 +08:00
@property (nonatomic,strong) VAPView *playerMp4View;
@property (nonatomic, strong) dispatch_queue_t queue;
2025-09-23 09:13:16 +08:00
-(void)previewEffectWith:(NSString *)play_image;
2025-09-15 18:20:22 +08:00
- (void)displayEffectView:(NSString *)play_image;
2025-09-19 11:38:43 +08:00
- (void)displayEffectViewWithMorePlayImages:(NSArray *)playImages;
2025-08-14 10:07:49 +08:00
- (void)openOrCloseEffectViewWith:(BOOL)isShow;
- (void)destroyEffectView;
-(void)stopPlay;
2025-09-19 11:38:43 +08:00
-(void)startPlay;
2025-08-14 10:07:49 +08:00
@end
NS_ASSUME_NONNULL_END