logo
当前页

ZegoMixerOutputVideoConfig

ZegoMixerOutputVideoConfig

混流输出视频配置。

详情

配置混流输出的视频参数,编码格式、码率。

  • 业务场景:手动混流场景,比如多人连麦直播。

Declared in ZegoExpressDefines.h

属性

videoCodecID

videoCodecID
nonatomic, assign ZegoVideoCodecID videoCodecID

混流输出视频编码格式,支持 H.264, H.265 编码。

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.h

configWithCodecID:bitrate:encodeProfile:encodeLatency

configWithCodecID:bitrate:encodeProfile:encodeLatency
- (void)configWithCodecID:(ZegoVideoCodecID)codecID bitrate:(int)bitrate encodeProfile:(ZegoEncodeProfile)profile encodeLatency:(int)latency;
设置混流输出视频配。
Declared in ZegoExpressDefines.h

configWithCodecID: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

上一篇

zegomixeroutputroominfo

下一篇

zegomixertask

当前页

返回到顶部