logo
On this page

ZegoMixerVideoConfig

ZegoMixerVideoConfig

Mix stream video config object.

Details

Configure video frame rate, bitrate, and resolution for mixer task

Declared in ZegoExpressDefines.h

Properties

fps

fps
nonatomic, assign int fps

Video FPS, cannot be modified after starting a mixer task

bitrate

bitrate
nonatomic, assign int bitrate

Video bitrate in kbps

quality

quality
nonatomic, assign int quality

Video quality, this value is valid when the video rate control mode parameter is set to constant quality. The valid value ranges from 0 to 51. The default value is 23. If you want better video quality, lower the quality value based on 23 to test the adjustment. If you want a smaller file size, test the adjustment by increasing the high quality value at the base of 23. Take the file size under the value x as an example. The file size under the value x + 6 is half the size of the file size under the value x, and the file size under the value x-6 is twice the size of the file size under the value x. On web platforms, this property does not take effect.

rateControlMode

rateControlMode
nonatomic, assign ZegoVideoRateControlMode rateControlMode

Video bitrate control mode. On web platforms, this property does not take effect.

resolution

resolution
nonatomic, assign CGSize resolution

video resolution

Methods

configWithResolution:fps:bitrate

configWithResolution:fps:bitrate
- (void)+ (instancetype)configWithResolution:(CGSize)resolution fps:(int)fps bitrate:(int)bitrate;
Create a mixer video configuration
Declared in ZegoExpressDefines.h

ZegoMixerVideoConfig instance

initWithResolution:fps:bitrate

initWithResolution:fps:bitrate
- (instancetype)initWithResolution:(CGSize)resolution fps:(int)fps bitrate:(int)bitrate;
Create a mixer video configuration
Declared in ZegoExpressDefines.h

ZegoMixerVideoConfig instance

Previous

zegomixertask

Next

zegomixerwhiteboard

On this page

Back to top