EncodingPreference
Video encoder preference.
Enumerator
- PreferAuto
- -1: Adaptive preference. The SDK automatically selects the optimal encoding type for encoding based on factors such as platform and device type.
- PreferSoftware
- 0: Software coding preference. The SDK prefers software encoders for video encoding.
- PreferHardware
- 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.