EncodingPreference

Video encoder preference.

Enumerations

PreferAuto
-1: Adaptive preference. The SDK automatically selects the optimal encoder type based on platform, device type, and other factors.
PreferSoftware
0: Software encoder preference. The SDK prioritizes using the software encoder for video encoding.
PreferHardware
1: Hardware encoder preference. The SDK prioritizes using the hardware encoder 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 hwEncoderAccelerating field in the onLocalVideoStats callback.