DEGRADATION_PREFERENCE
Video degradation preferences when the bandwidth is a constraint.
Enumerator
- MAINTAIN_AUTO
- 0: (Default) Automatic mode. The SDK will automatically select MAINTAIN_FRAMERATE, MAINTAIN_BALANCED or MAINTAIN_RESOLUTION based on the video scenario you set, in order to achieve the best overall quality of experience (QoE).
- MAINTAIN_QUALITY
- 0: Prefers to reduce the video frame rate while maintaining video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
- Deprecated:
- This enumerator is deprecated. Use other enumerations instead.
- MAINTAIN_FRAMERATE
- 1: Reduces the video resolution 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.
- MAINTAIN_BALANCED
-
2: Reduces the video frame rate and video resolution simultaneously during video encoding under limited bandwidth. The MAINTAIN_BALANCED has a lower reduction than MAINTAIN_QUALITY and MAINTAIN_FRAMERATE, and this preference is suitable for scenarios where both smoothness and video quality are a priority.
Attention: The resolution of the video sent may change, so remote users need to handle this issue. See OnVideoSizeChanged. - MAINTAIN_RESOLUTION
- 3: Reduces the video frame rate while maintaining the video resolution during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.