此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

RTCCodecStats:timestamp 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年3月.

RTCCodecStats 字典的 timestamp 属性是用于指定对象中数据采样的时间的 DOMHighResTimeStamp 对象。

表示此对象中统计信息所描述活动的记录时间的 DOMHighResTimeStamp 值(单位:自 1970 年 1 月 1 日 00:00:00 UTC 起经过的毫秒数)。

该值的精度应在几毫秒以内,但由于硬件或操作系统限制,或由于指纹识别防护机制,时钟的精度或准确性可能回降低而导致数值并非完全精确。

规范

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcstats-timestamp

浏览器兼容性