VideoEncoderConfiguration class Null safety

Definition of VideoEncoderConfiguration.

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

VideoEncoderConfiguration({VideoDimensions? dimensions, VideoFrameRate? frameRate, VideoFrameRate? minFrameRate, int? bitrate, int? minBitrate, VideoOutputOrientationMode? orientationMode, DegradationPreference? degradationPrefer, VideoMirrorMode? mirrorMode})
Constructs a VideoEncoderConfiguration

Properties

bitrate int?
Bitrate of the video (Kbps). Refer to the table below and set your bitrate. If you set a bitrate beyond the proper range, the SDK automatically adjusts it to a value within the range. [...]
@JsonKey(includeIfNull: false), read / write
degradationPrefer DegradationPreference?
The video encoding degradation preference under limited bandwidth: See DegradationPreference.
@JsonKey(includeIfNull: false), read / write
dimensions VideoDimensions?
The video frame dimensions (px), which is used to specify the video quality and measured by the total number of pixels along a frame's width and height. The default value is 640 × 360. You can customize the dimension, or select from the following list: [...]
@JsonKey(includeIfNull: false), read / write
frameRate VideoFrameRate?
The video frame rate (fps). The default value is 15. You can either set the frame rate manually or choose from VideoFrameRate. We do not recommend setting this to a value greater than 30.
@JsonKey(includeIfNull: false), read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
minBitrate int?
The minimum encoding bitrate (Kbps). The Agora SDK automatically adjusts the encoding bitrate to adapt to the network conditions. Using a value greater than the default value forces the video encoder to output high-quality images but may cause more packet loss and hence sacrifice the smoothness of the video transmission. That said, unless you have special requirements for image quality, Agora does not recommend changing this value.
@JsonKey(includeIfNull: false), read / write
minFrameRate VideoFrameRate?
The minimum video encoder frame rate (fps). The default value is VideoFrameRate.Min (the SDK uses the lowest encoder frame rate).
@JsonKey(includeIfNull: false), read / write
mirrorMode VideoMirrorMode?
Sets the mirror mode of the published local video stream. This member only affects the video that the remote user sees. See VideoMirrorMode.
@JsonKey(includeIfNull: false), read / write
orientationMode VideoOutputOrientationMode?
The orientation mode. See VideoOutputOrientationMode.
@JsonKey(includeIfNull: false), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited