DegradationPreference enum Null safety

The video encoding degradation preference under limited bandwidth.

Constants

MaintainBalanced → const DegradationPreference

Reduces the video frame rate and video quality simultaneously during video encoding under limited bandwidth. Balenced has a lower reduction than MaintainQuality and MaintainFramerate, and this preference is suitable for scenarios where both smoothness and video quality are a priority.

Note

The resolution of the video sent may change, so remote users need to handle this issue. See RtcEngineEventHandler.videoSizeChanged.

@JsonValue(2)
const DegradationPreference(2)
MaintainFramerate → const DegradationPreference

Prefers to reduce the video quality while maintaining the video frame rate during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where smoothness is prioritized and video quality is allowed to be reduced.

@JsonValue(1)
const DegradationPreference(1)
MaintainQuality → const DegradationPreference

(Default) Prefers to reduce the video frame rate while maintaining video quality during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.

Note

In the COMMUNICATION channel profile, the resolution of the video sent may change, so remote users need to handle this issue. See RtcEngineEventHandler.videoSizeChanged.

@JsonValue(0)
const DegradationPreference(0)
values → const List<DegradationPreference>

A constant List of the values in this enum, in order of their declaration.

const List<DegradationPreference>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
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. [...]
override

Operators

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