DegradationPreference

Video encoding degradation preference when bandwidth is limited.

Enumerations

MaintainAuto
-1: (Default) Auto mode. The SDK automatically selects MaintainFramerate, MaintainBalanced, or MaintainResolution based on your video scenario settings to achieve optimal overall quality of experience (QoE).
MaintainQuality
0: When bandwidth is limited, prioritize reducing video frame rate while maintaining resolution. This degradation preference suits scenarios where video quality is prioritized.
Note: Deprecated: This enum is deprecated. Use other enums instead.
MaintainFramerate
1: When bandwidth is limited, prioritize reducing video resolution while maintaining frame rate. This degradation preference suits scenarios where smoothness is prioritized and some quality loss is acceptable.
MaintainBalanced
2: When bandwidth is limited, reduce both video frame rate and resolution. The degradation level of MaintainBalanced is lower than that of MaintainQuality and MaintainFramerate, suitable for scenarios with both smoothness and quality constraints.
Note: The resolution of the locally sent video may change. The remote user must be able to handle this. See onVideoSizeChanged.
MaintainResolution
3: When bandwidth is limited, prioritize reducing video frame rate while maintaining resolution. This degradation preference suits scenarios where video quality is prioritized.