SellyCloudSDK_demo/SellyCloudSDK/sdk/SellyCloudSDK.framework/Headers/SellyRTCVideoConfiguration.h

46 lines
1.3 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// SellyRTCVideoConfiguration.h
// SellyCloudSDK
//
// Created by Caleb on 5/11/25.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
NS_ASSUME_NONNULL_BEGIN
typedef CGSize SellyRTCVideoResolution;
extern SellyRTCVideoResolution const SellyRTCVideoResolution480x360;
extern SellyRTCVideoResolution const SellyRTCVideoResolution480x480;
extern SellyRTCVideoResolution const SellyRTCVideoResolution640x360;
extern SellyRTCVideoResolution const SellyRTCVideoResolution640x480;
extern SellyRTCVideoResolution const SellyRTCVideoResolution960x540;
extern SellyRTCVideoResolution const SellyRTCVideoResolution1280x720;
typedef NS_ENUM(NSInteger, SellyVideoCodecType) {
SellyVideoCodecTypeH264 = 1,
SellyVideoCodecTypeH265 = 2,
};
@interface SellyRTCVideoConfiguration : NSObject
//分辨率
@property(assign, nonatomic) SellyRTCVideoResolution resolution;
//帧率
@property(assign, nonatomic) NSInteger frameRate;
//最大码率 bps
@property(assign, nonatomic) NSInteger maxBitrate;
//最小码率 bps
@property(assign, nonatomic) NSInteger minBitrate;
/**
会议模式仅支持h264单聊支持h264h265
*/
@property (nonatomic, assign) SellyVideoCodecType preferCodec;
//默认使用前/后置摄像头
@property (nonatomic, assign)AVCaptureDevicePosition preferPosition;
+ (instancetype)defaultConfig;
@end
NS_ASSUME_NONNULL_END