# CodecCapLevels (/zh-CN/api-reference/rtc/flutter/class-codeccaplevels)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_codeccaplevels__prototype"></a>

```dart
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class CodecCapLevels {
  const CodecCapLevels({this.hwDecodingLevel, this.swDecodingLevel});

  @JsonKey(name: 'hwDecodingLevel')
  final VideoCodecCapabilityLevel? hwDecodingLevel;

  @JsonKey(name: 'swDecodingLevel')
  final VideoCodecCapabilityLevel? swDecodingLevel;

  factory CodecCapLevels.fromJson(Map<String, dynamic> json) =>
      _$CodecCapLevelsFromJson(json);

  Map<String, dynamic> toJson() => _$CodecCapLevelsToJson(this);
}
```

<a id="class_codeccaplevels__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="hwdecodinglevel"></a>
<Parameter name="hwDecodingLevel">

硬件解码能力等级，表示设备能够对不同品质视频进行硬件解码的能力。详见 [VideoCodecCapabilityLevel](/zh-CN/api-reference/rtc/flutter/enum-videocodeccapabilitylevel)。

</Parameter>
<a id="swdecodinglevel"></a>
<Parameter name="swDecodingLevel">

软件解码能力等级，表示设备能够对不同品质视频进行软件解码的能力。详见 [VideoCodecCapabilityLevel](/zh-CN/api-reference/rtc/flutter/enum-videocodeccapabilitylevel)。

</Parameter>
</ParameterList>
