Agora Java API Reference for Android

Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE Enum Reference

## Public Member Functions
int | getValue ()

## Public Attributes
| MAINTAIN_AUTO =(-1)
| MAINTAIN_QUALITY =(0)
| MAINTAIN_FRAMERATE =(1)
| MAINTAIN_BALANCED =(2)
| MAINTAIN_RESOLUTION =(3)
| DISABLED =(100)

## Detailed Description

The video encoding degradation preference under limited bandwidth.

## Member Data Documentation

## ◆ MAINTAIN_AUTO

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_AUTO =(-1)

-1: (Default) SDK uses option MAINTAIN_RESOLUTION By default. But If user set video scenario through API setVideoScenario or network state has changed, sdk may change this parameter between MAINTAIN_FRAMERATE、MAINTAIN_BALANCED and MAINTAIN_RESOLUTION * automatically to get the best QOE.

## ◆ MAINTAIN_QUALITY

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_QUALITY =(0)

0: (Deprecated) Degrade the frame rate and keep resolution to guarantee the video quality.

## ◆ MAINTAIN_FRAMERATE

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_FRAMERATE =(1)

1: Degrade resolution in order to maintain framerate.

## ◆ MAINTAIN_BALANCED

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_BALANCED =(2)

2: Maintain resolution in video quality control process. Under limited bandwidth, degrade video quality first and then degrade frame rate.

## ◆ MAINTAIN_RESOLUTION

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.MAINTAIN_RESOLUTION =(3)

3: Degrade framerate in order to maintain resolution.

## ◆ DISABLED

io.agora.rtc2.video.VideoEncoderConfiguration.DEGRADATION_PREFERENCE.DISABLED =(100)

4: Disabled VQC adjustion.