ZegoAVConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | ZegoLiveRoomApiDefines-Publisher.h |
+ presetConfigOf:
获取不同质量的直播配置实例
+ (instancetype)presetConfigOf:(ZegoAVConfigPreset)preset
Parameters
preset |
预设直播质量 |
---|
Return Value
ZegoAVConfig 实例
Discussion
直播前要预设直播配置
Declared In
ZegoLiveRoomApiDefines-Publisher.h
videoEncodeResolution
视频编码输出分辨率,最大值 4096x2160
@property (assign) CGSize videoEncodeResolution
Declared In
ZegoLiveRoomApiDefines-Publisher.h
videoCaptureResolution
视频采集分辨率,最大值 4096x2160 采集分辨率最好与输出分辨率相同,否则 SDK 内部会进行重采样处理,有额外性能消耗
@property (assign) CGSize videoCaptureResolution
Declared In
ZegoLiveRoomApiDefines-Publisher.h
bitrate
视频码率(bps),最大值 50,000,000
@property (assign) int bitrate
Declared In
ZegoLiveRoomApiDefines-Publisher.h