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 experience (QoE).
- maintainQuality
- 0: When bandwidth is limited, prioritize reducing video frame rate while maintaining resolution. This preference is suitable for scenarios prioritizing image quality.
Note: Deprecated: This enumeration is deprecated. Use other enumerations instead.
- maintainFramerate
- 1: When bandwidth is limited, prioritize reducing video resolution while maintaining frame rate. This preference is suitable for scenarios prioritizing smoothness and allowing reduced image quality.
- maintainBalanced
- 2: When bandwidth is limited, reduce both video frame rate and resolution. The degradation level of maintainBalanced is lower than maintainQuality and maintainFramerate, 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 situation. See onVideoSizeChanged.
- maintainResolution
- 3: When bandwidth is limited, prioritize reducing video frame rate while keeping resolution unchanged. This preference is suitable for scenarios prioritizing image quality.