Agora Java API Reference for Android
|
Public Member Functions | |
int | getValue () |
Public Attributes | |
MAINTAIN_QUALITY =(0) | |
MAINTAIN_FRAMERATE =(1) | |
MAINTAIN_BALANCED =(2) | |
The video encoding degradation preference under limited bandwidth.
io.agora.rtc.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_QUALITY =(0) |
0: (Default) Prefers to reduce the video frame rate while maintaining video quality during video encoding under limited bandwidth. This degradation preference is suitable for scenarios where video quality is prioritized.
COMMUNICATION
channel profile, the resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged
. io.agora.rtc.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_FRAMERATE =(1) |
1: Prefers to reduce the video quality 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.
io.agora.rtc.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_BALANCED =(2) |
2: Reduces the video frame rate and video quality simultaneously during video encoding under limited bandwidth. 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
.