# ENCODING_PREFERENCE (/zh-CN/api-reference/rtc/android/enum-encodingpreference)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
## 枚举值 [#枚举值]
(-1):自适应偏好。SDK 会根据平台和设备类型等因素自动选择最优的视频编码方式。
(0):软件编码偏好。SDK 优先使用软件编码器进行视频编码。
(1):硬件编码偏好。SDK 优先使用硬件编码器进行视频编码。当设备不支持硬件编码时,SDK 会自动使用软件编码,并通过 [onLocalVideoStats](/zh-CN/api-reference/rtc/android/video/video-basic#callback_irtcengineeventhandler_onlocalvideostats) 回调中的 `hwEncoderAccelerating` 报告当前使用的视频编码器类型。