DEGRADATION_PREFERENCE

Video encoding degradation preference when bandwidth is limited.

Enumerations

MAINTAIN_AUTO
-1: (Default) Auto mode. The SDK automatically selects MAINTAIN_FRAMERATE, MAINTAIN_BALANCED, or MAINTAIN_RESOLUTION based on your video scenario to achieve optimal overall quality experience (QoE).
MAINTAIN_QUALITY
0: When bandwidth is limited, video encoding prioritizes reducing frame rate while maintaining resolution. This preference is suitable for scenarios prioritizing image quality.
Note: Deprecated: This enumeration is deprecated. Use other enumerations instead.
MAINTAIN_FRAMERATE
1: When bandwidth is limited, video encoding prioritizes reducing resolution while maintaining frame rate. This preference suits scenarios prioritizing smoothness and tolerating reduced image quality.
MAINTAIN_BALANCED
2: When bandwidth is limited, video encoding reduces both frame rate and resolution. The degradation level of MAINTAIN_BALANCED is lower than that of MAINTAIN_QUALITY and MAINTAIN_FRAMERATE, suitable for scenarios with limited smoothness and image quality.
Note: The resolution of the locally sent video may change. Remote users must be able to handle this. See OnVideoSizeChanged.
MAINTAIN_RESOLUTION
3: When bandwidth is limited, video encoding prioritizes reducing frame rate while keeping resolution unchanged. This preference is suitable for scenarios prioritizing image quality.