56 lines
1.4 KiB
Objective-C
56 lines
1.4 KiB
Objective-C
//
|
|
// 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;
|
|
|
|
/// 礼物、坐骑【全屏位置】特效 加载
|
|
- (void)displayFullEffectView:(NSString *)gift;
|
|
|
|
/// 礼物数组
|
|
- (void)displayFullEffectViewWithMorePlayImages:(NSArray *)playImages;
|
|
|
|
/// 坐骑【公屏信息流位置】特效 加载
|
|
- (void)displayChatEffectView:(NSString *)gift;
|
|
|
|
/// 关闭打开动效
|
|
- (void)openOrCloseEffectViewWith:(BOOL)isShow;
|
|
|
|
/// 销毁
|
|
- (void)destroyEffectSvga;
|
|
|
|
-(void)stopPlay;
|
|
|
|
-(void)startPlay;
|
|
@end
|
|
|
|
|
|
@interface QXEffectContentView : UIView
|
|
@property (nonatomic,assign) BOOL isShow;
|
|
@property (nonatomic,assign) BOOL isOnece;
|
|
@property (nonatomic,strong) VAPView *playerMp4View;
|
|
@property (nonatomic, strong) dispatch_queue_t queue;
|
|
-(void)previewEffectWith:(NSString *)play_image;
|
|
- (void)displayEffectView:(NSString *)play_image;
|
|
- (void)displayEffectViewWithMorePlayImages:(NSArray *)playImages;
|
|
- (void)openOrCloseEffectViewWith:(BOOL)isShow;
|
|
- (void)destroyEffectView;
|
|
-(void)stopPlay;
|
|
-(void)startPlay;
|
|
@end
|
|
NS_ASSUME_NONNULL_END
|