initial commit
This commit is contained in:
38
Example/SellyCloudSDK/VideoCall/SLSVideoGridView.h
Normal file
38
Example/SellyCloudSDK/VideoCall/SLSVideoGridView.h
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// SLSVideoGridView.h
|
||||
// SellyCloudSDK_Example
|
||||
//
|
||||
// Created by Caleb on 13/11/25.
|
||||
// Copyright © 2025 Caleb. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "SLSParticipant.h"
|
||||
#import "SLSVideoTileView.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SLSVideoGridView : UIView
|
||||
|
||||
@property (nonatomic, assign) CGFloat spacing; // 默认 8
|
||||
@property (nonatomic, assign) UIEdgeInsets padding;// 默认 {12,12,12,12}
|
||||
@property (nonatomic, assign) BOOL keepAspect169; // 默认 YES
|
||||
|
||||
/// 创建或获取某个 uid 的 tile,并返回其中的 contentView 作为渲染容器
|
||||
- (SLSVideoTileView *)ensureRenderContainerForUID:(NSString *)uid
|
||||
displayName:(nullable NSString *)name;
|
||||
|
||||
/// 移除某个 uid(用户离开)
|
||||
- (void)detachUID:(NSString *)uid;
|
||||
|
||||
/// 更新音量(0~1),用于说话者高亮
|
||||
- (void)setLevel:(CGFloat)level forUID:(NSString *)uid;
|
||||
|
||||
/// 更新静音状态
|
||||
- (void)setAudioMuted:(BOOL)muted forUID:(NSString *)uid;
|
||||
- (void)setVideoMuted:(BOOL)muted forUID:(NSString *)uid;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user