DegradationPreference enum
The video encoding degradation preference under limited bandwidth.
Constructors
- DegradationPreference()
-
const
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
COMMUNICATION
channel profile, the resolution of the video sent may change, so remote users need to handle this issue. See RtcEngineEventHandler.videoSizeChanged. - 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.
Balenced
has a lower reduction thanMaintainQuality
andMaintainFramerate
, 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
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.