ZegoMixerVideoConfig class
Mix stream video config object.
Configure video frame rate, bitrate, and resolution for mixer task
Constructors
- ZegoMixerVideoConfig(int width, int height, int fps, int bitrate, int quality, ZegoVideoRateControlMode rateControlMode)
- ZegoMixerVideoConfig.defaultConfig()
- Create a default mixer video configuration
Properties
- bitrate ↔ int
-
Video bitrate in kbps
getter/setter pair
- fps ↔ int
-
Video FPS, cannot be modified after starting a mixer task
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ int
-
Video resolution height
getter/setter pair
- quality ↔ int
-
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.
getter/setter pair
- rateControlMode ↔ ZegoVideoRateControlMode
-
Video bitrate control mode. On web platforms, this property does not take effect.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width ↔ int
-
Video resolution width
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited