Agora Java API Reference for Android
io.agora.rtc.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE Enum Reference

Public Member Functions

int getValue ()
 

Public Attributes

 MAINTAIN_QUALITY =(0)
 
 MAINTAIN_FRAMERATE =(1)
 
 MAINTAIN_BALANCED =(2)
 

Detailed Description

The video encoding degradation preference under limited bandwidth.

Since
v2.4.0.

Member Data Documentation

◆ MAINTAIN_QUALITY

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.

Note
In the COMMUNICATION channel profile, the resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged.

◆ MAINTAIN_FRAMERATE

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.

◆ MAINTAIN_BALANCED

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.

Since
v3.4.0
Note
The resolution of the video sent may change, so remote users need to handle this issue. See onVideoSizeChanged.