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

View in English Always switch to English

RTCRemoteInboundRtpStreamStats:totalRoundTripTime 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

RTCRemoteInboundRtpStreamStats 字典的 totalRoundTripTime 属性返回自会话开始以来所有往返时间(RTT)测量值的累计总和(单位:秒)。

单个往返时间基于 RTCP 接收报告(RR)中的 RTCP 时间戳计算得出,因此需要 DLSR 值不为 0。平均 RTT 可通过将 totalRoundTripTime 除以 roundTripTimeMeasurements 计算得出。