|
Agora Java API Reference for Android
|
Video degradation preferences when the bandwidth is a constraint. More...
Public Member Functions | |
| int | getValue () |
Public Attributes | |
| MAINTAIN_AUTO =(-1) | |
| MAINTAIN_QUALITY =(0) | |
| MAINTAIN_FRAMERATE =(1) | |
| MAINTAIN_BALANCED =(2) | |
| MAINTAIN_RESOLUTION =(3) | |
| DISABLED =(100) | |
Video degradation preferences when the bandwidth is a constraint.
| io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_AUTO =(-1) |
-1: (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).
| io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_QUALITY =(0) |
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.
| io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_FRAMERATE =(1) |
1: Degrade resolution in order to maintain framerate.
| io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_BALANCED =(2) |
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.
onVideoSizeChanged. | io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_RESOLUTION =(3) |
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.
| io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.DISABLED =(100) |
4: Disabled VQC adjustion.
1.8.18