ENCODING_PREFERENCE
Video encoder preference.
Enumerations
- PREFER_AUTO
- -1: Adaptive preference. The SDK automatically selects the optimal encoder based on platform, device type, and other factors.
- PREFER_SOFTWARE
- 0: Software encoder preference. The SDK prioritizes using a software encoder for video encoding.
- PREFER_HARDWARE
- 1: Hardware encoder preference. The SDK prioritizes using a hardware encoder for video encoding. If the device does not support hardware encoding, the SDK automatically falls back to software encoding and reports the encoder type used via the
hwEncoderAcceleratingfield in the OnLocalVideoStats callback.