ENCODING_PREFERENCE

Video encoder preference.

Enumerator

PREFER_AUTO
-1: Adaptive preference. The SDK automatically selects the optimal encoding type for encoding based on factors such as platform and device type.
PREFER_SOFTWARE
0: Software coding preference. The SDK prefers software encoders for video encoding.
PREFER_HARDWARE
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.