ZegoMixerOutputVideoConfig
ZegoMixerOutputVideoConfig
混流输出视频配置。
详情
配置混流输出的视频参数,编码格式、码率。
- 业务场景:手动混流场景,比如多人连麦直播。
Declared in ZegoExpressDefines.h
属性
videoCodecID
bitrate
bitrate
nonatomic, assign int bitrate混流输出视频码率,单位为 kbps。默认值为 [ZegoMixerVideoConfig] 中配置的 bitrate。
encodeProfile
encodeProfile
nonatomic, assign ZegoEncodeProfile encodeProfile混流输出视频编码规格。默认值为 [ZegoEncodeProfileDefault]。
encodeLatency
encodeLatency
nonatomic, assign int encodeLatency混流输出视频编码延时,有效值范围 [0, 2000], 单位毫秒。默认值为 0。
enableLowBitrateHD
enableLowBitrateHD
BOOL enableLowBitrateHD开启高清低码,默认值为 false
方法
configWithCodecID:bitrate
configWithCodecID:bitrate
- (void)configWithCodecID:(ZegoVideoCodecID)codecID bitrate:(int)bitrate;设置混流输出视频配。
Declared in
ZegoExpressDefines.hconfigWithCodecID:bitrate:encodeProfile:encodeLatency
configWithCodecID:bitrate:encodeProfile:encodeLatency
- (void)configWithCodecID:(ZegoVideoCodecID)codecID bitrate:(int)bitrate encodeProfile:(ZegoEncodeProfile)profile encodeLatency:(int)latency;设置混流输出视频配。
Declared in
ZegoExpressDefines.hconfigWithCodecID:bitrate:encodeProfile:encodeLatency:enableLowBitrateHD
configWithCodecID:bitrate:encodeProfile:encodeLatency:enableLowBitrateHD
- (void)configWithCodecID:(ZegoVideoCodecID)codecID bitrate:(int)bitrate encodeProfile:(ZegoEncodeProfile)profile encodeLatency:(int)latency enableLowBitrateHD:(BOOL)enableLowBitrateHD;设置混流输出视频配。
Declared in
ZegoExpressDefines.h