DegradationPreference enum
The video encoding degradation preference under limited bandwidth.
Values
- 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
COMMUNICATIONchannel profile, the resolution of the video sent may change, so remote users need to handle this issue. See RtcEngineEventHandler.videoSizeChanged.
- In the
- 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.
- MaintainBalanced → const DegradationPreference
-
Reduces the video frame rate and video quality simultaneously during video encoding under limited bandwidth.
Balencedhas a lower reduction thanMaintainQualityandMaintainFramerate, 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.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
DegradationPreference> - A constant List of the values in this enum, in order of their declaration.