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

Video encoder preference. More...

Public Member Functions

int getValue ()
 

Public Attributes

 PREFER_AUTO =(-1)
 
 PREFER_SOFTWARE =(0)
 
 PREFER_HARDWARE =(1)
 

Detailed Description

Video encoder preference.

Member Data Documentation

◆ PREFER_AUTO

io.agora.rtc2.video.VideoEncoderConfiguration.ENCODING_PREFERENCE.PREFER_AUTO =(-1)

-1: Adaptive preference. The SDK automatically selects the optimal encoding type for encoding based on factors such as platform and device type.

◆ PREFER_SOFTWARE

io.agora.rtc2.video.VideoEncoderConfiguration.ENCODING_PREFERENCE.PREFER_SOFTWARE =(0)

0: Software coding preference. The SDK prefers software encoders for video encoding.

◆ PREFER_HARDWARE

io.agora.rtc2.video.VideoEncoderConfiguration.ENCODING_PREFERENCE.PREFER_HARDWARE =(1)

1: Hardware encoding preference. The SDK prefers a hardware encoder for video encoding. When the device does not support hardware encoding, the SDK automatically uses software encoding and reports the currently used video encoder type through hwEncoderAccelerating in the onLocalVideoStats callback.