ENCODING_PREFERENCE
Video encoder preference settings.
Enumerations
- PREFER_AUTO
- (-1): Adaptive preference. The SDK automatically selects the optimal video encoding method based on platform and device type.
- PREFER_SOFTWARE
- (0): Software encoding preferred. The SDK prioritizes using software encoder for video encoding.
- PREFER_HARDWARE
- (1): Hardware encoding preferred. The SDK prioritizes using hardware encoder for video encoding. If hardware encoding is not supported, the SDK automatically uses software encoding and reports the current encoder type via the onLocalVideoStats callback's
hwEncoderAccelerating.