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_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_QUALITY

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

0: (Default) 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.