//
//  ERTCPlayerViewManager.h
//  ERTCDemo
//
//  Created by wangjinlong23 on 2022/5/13.
//

#import <Foundation/Foundation.h>
#import <ERTC/ERTC.h>

NS_ASSUME_NONNULL_BEGIN

@interface ERTCPlayerViewManager : NSObject

@property (nonatomic, strong, nullable) ERTCEngine *engine;
@property (nonatomic, assign) BOOL videoState;//视频状态
@property (nonatomic, assign) BOOL audioState;//音频状态
@property (nonatomic, assign)  BOOL closeSound;//关闭扬声器
@property (nonatomic, assign) ERTCFilterType filterType; //滤镜类型
@property (nonatomic, assign) double filterLevel;//滤镜程度

+ (instancetype)sharedInstance;

- (void)enterRoomWithRoomId:(NSString *)roomId userId:(NSString *)userId  completion:(void (^)(NSError *error))completion;

- (void)exitRoom;
- (void)creatConfig:(void(^)(NSError *error))completion;
@end

NS_ASSUME_NONNULL_END
