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 计算得出。
值
表示会话的总往返时间的数值(单位:秒)。
规范
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcremoteinboundrtpstreamstats-totalroundtriptime> |