EncodingPreference

Video encoder preference.

Enumerations

PreferAuto
-1: Adaptive preference. The SDK automatically selects the optimal encoding type based on platform, device type, and other factors.
PreferSoftware
0: Software encoding preference. The SDK prioritizes using software encoders for video encoding.
PreferHardware
1: Hardware encoding preference. The SDK prioritizes using hardware encoders for video encoding. If the device does not support hardware encoding, the SDK automatically switches to software encoding and reports the current encoder type via the onLocalVideoStats callback's hwEncoderAccelerating field.