# Interface LocalVideoTrackStats (/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/localvideotrackstats)

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

## Properties [#properties]

<a id="captureframerate"></a>

<a id="optional-captureframerate"></a>

### captureFrameRate [#captureframerate]

<ApiSignature labels="Optional">

captureFrameRate: number

</ApiSignature>

视频采集帧率（fps）。

> Safari 和 Firefox 上无法获取该值。

<a id="captureresolutionheight"></a>

### captureResolutionHeight [#captureresolutionheight]

<ApiSignature>

captureResolutionHeight: number

</ApiSignature>

视频采集的分辨率高度。

<a id="captureresolutionwidth"></a>

### captureResolutionWidth [#captureresolutionwidth]

<ApiSignature>

captureResolutionWidth: number

</ApiSignature>

视频采集的分辨率宽度。

<a id="codectype"></a>

<a id="optional-codectype"></a>

### codecType [#codectype]

<ApiSignature labels="Optional">

codecType: "H264"|"H265"|"VP8"|"VP9"|"AV1X"|"AV1"

</ApiSignature>

视频编码格式。

- `"H264"`: 视频编码格式为 H.264。
- `"VP8"`: 视频编码格式为 VP8。
- `"VP9"`: 视频编码格式为 VP9。
- `"AV1X"`: 预留参数，暂不支持。
- `"AV1"`: 视频编码格式为 AV1。

> Firefox 上无法获取该值。

<a id="currentpacketlossrate"></a>

### currentPacketLossRate [#currentpacketlossrate]

<ApiSignature>

currentPacketLossRate: number

</ApiSignature>

发送的视频 400ms 内的丢包率。

<a id="encodedelay"></a>

<a id="optional-encodedelay"></a>

### encodeDelay [#encodedelay]

<ApiSignature labels="Optional">

encodeDelay: number

</ApiSignature>

视频编码延迟（ms）。

<a id="sendbitrate"></a>

### sendBitrate [#sendbitrate]

<ApiSignature>

sendBitrate: number

</ApiSignature>

视频发送码率 (bps)。

<a id="sendbytes"></a>

### sendBytes [#sendbytes]

<ApiSignature>

sendBytes: number

</ApiSignature>

发送的视频总字节数 (bytes)。

<a id="sendframerate"></a>

<a id="optional-sendframerate"></a>

### sendFrameRate [#sendframerate]

<ApiSignature labels="Optional">

sendFrameRate: number

</ApiSignature>

视频发送帧率（fps）。

> Firefox 上无法获取该值。

<a id="sendjitterms"></a>

### sendJitterMs [#sendjitterms]

<ApiSignature>

sendJitterMs: number

</ApiSignature>

发送视频数据包的抖动 (ms)。

<a id="sendpackets"></a>

### sendPackets [#sendpackets]

<ApiSignature>

sendPackets: number

</ApiSignature>

发送的视频总包数。

<a id="sendpacketslost"></a>

### sendPacketsLost [#sendpacketslost]

<ApiSignature>

sendPacketsLost: number

</ApiSignature>

发送的视频总丢包数。

> - Safari 上无法获取该值。
> - Firefox 上该字段不准确。

<a id="sendresolutionheight"></a>

### sendResolutionHeight [#sendresolutionheight]

<ApiSignature>

sendResolutionHeight: number

</ApiSignature>

视频发送的分辨率高度。

<a id="sendresolutionwidth"></a>

### sendResolutionWidth [#sendresolutionwidth]

<ApiSignature>

sendResolutionWidth: number

</ApiSignature>

视频发送的分辨率宽度。

<a id="sendrttms"></a>

### sendRttMs [#sendrttms]

<ApiSignature>

sendRttMs: number

</ApiSignature>

发送视频数据包的往返时延 (ms)。

<a id="targetsendbitrate"></a>

### targetSendBitrate [#targetsendbitrate]

<ApiSignature>

targetSendBitrate: number

</ApiSignature>

视频目标发送码率 (bps)，即 [VideoEncoderConfiguration](/zh-CN/api-reference/rtc/react-sdk/web-sdk/interfaces/videoencoderconfiguration) 中设置的码率。

<a id="totalduration"></a>

### totalDuration [#totalduration]

<ApiSignature>

totalDuration: number

</ApiSignature>

视频总时长，单位为秒。

<a id="totalfreezetime"></a>

### totalFreezeTime [#totalfreezetime]

<ApiSignature>

totalFreezeTime: number

</ApiSignature>

视频总卡顿时长，单位为秒。
