46 lines
1.3 KiB
Objective-C
46 lines
1.3 KiB
Objective-C
//
|
||
// 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,单聊支持h264,h265
|
||
*/
|
||
@property (nonatomic, assign) SellyVideoCodecType preferCodec;
|
||
//默认使用前/后置摄像头
|
||
@property (nonatomic, assign)AVCaptureDevicePosition preferPosition;
|
||
+ (instancetype)defaultConfig;
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|