Agora Java API Reference for Android
Public Member Functions | Public Attributes | List of all members
io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE Enum Reference

Compression preference for video encoding. More...

Public Member Functions

int getValue ()
 

Public Attributes

 PREFER_COMPRESSION_AUTO =(-1)
 
 PREFER_LOW_LATENCY =(0)
 
 PREFER_QUALITY =(1)
 

Detailed Description

Compression preference for video encoding.

Member Data Documentation

◆ PREFER_COMPRESSION_AUTO

io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_COMPRESSION_AUTO =(-1)

-1: (Default) Automatic mode. The SDK will automatically select PREFER_LOW_LATENCY or PREFER_QUALITY based on the video scenario you set to achieve the best user experience.

◆ PREFER_LOW_LATENCY

io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_LOW_LATENCY =(0)

0: Low latency preference. The SDK compresses video frames to reduce latency. This preference is suitable for scenarios where smoothness is prioritized and reduced video quality is acceptable.

◆ PREFER_QUALITY

io.agora.rtc2.video.VideoEncoderConfiguration.COMPRESSION_PREFERENCE.PREFER_QUALITY =(1)

1: High quality preference. The SDK compresses video frames while maintaining video quality. This preference is suitable for scenarios where video quality is prioritized.