大网数据广告活动
Web 标准与前端开发

RTCRemoteOutboundRtpStreamStats

· 52CE 我爱测

The **`RTCRemoteOutboundRtpStreamStats`** dictionary of the WebRTC API is used to report statistics from a remote endpoint about its outbound RTP stream. This will correspond to an inbound stream that is currently being received by the local RTCPeerConnection object.

WebRTC

The RTCRemoteOutboundRtpStreamStats dictionary of the WebRTC API is used to report statistics from a remote endpoint about its outbound RTP stream. This will correspond to an inbound stream that is currently being received by the local RTCPeerConnection object.

The statistics can be obtained by iterating the RTCStatsReport returned by RTCPeerConnection.getStats() until you find a report with the type of remote-outbound-rtp.

Instance properties

Remote outbound specific statistics

  • RTCRemoteOutboundRtpStreamStats.localId
  • RTCRemoteOutboundRtpStreamStats.remoteTimestamp
    • : A DOMHighResTimeStamp specifying the timestamp (on the remote device) at which the statistics in the RTCRemoteOutboundRtpStreamStats object were sent by the remote endpoint. This is different from the RTCRemoteOutboundRtpStreamStats.timestamp; it represents the time at which the object's statistics were received or generated by the local endpoint.
  • reportsSent
  • RTCRemoteOutboundRtpStreamStats.roundTripTimeMeasurements
  • RTCRemoteOutboundRtpStreamStats.totalRoundTripTime
    • : A number indicating the cumulative sum of all round trip time measurements since the beginning of the session, in seconds. The average round trip time can be computed by dividing totalRoundTripTime by roundTripTimeMeasurements.

Sent RTP stream statistics

  • bytesSent
    • : A positive integer indicating the total number of bytes sent for this SSRC, including retransmissions.
  • packetsSent
    • : A positive integer indicating the total number of RTP packets sent for this SSRC, including retransmissions.

Common RTP stream statistics

  • RTCRemoteOutboundRtpStreamStats.codecId
    • : A string that uniquely identifies the object that was inspected to produce the RTCCodecStats report associated with this RTP stream.
  • RTCRemoteOutboundRtpStreamStats.kind
    • : A string indicating whether the MediaStreamTrack associated with the stream is an audio or a video track.
  • RTCRemoteOutboundRtpStreamStats.ssrc
    • : A positive integer that identifies the synchronization source (SSRC) of the RTP packets in this stream.
  • RTCRemoteOutboundRtpStreamStats.transportId
    • : A string that uniquely identifies the object that was inspected to produce the RTCTransportStats report associated with this RTP stream.

Common instance properties

The following properties are common to all WebRTC statistics objects.

  • RTCRemoteOutboundRtpStreamStats.id
    • : A string that uniquely identifies the object that is being monitored to produce this set of statistics.
  • RTCRemoteOutboundRtpStreamStats.timestamp
    • : A DOMHighResTimeStamp object indicating the time at which the sample was taken for this statistics object.
  • RTCRemoteOutboundRtpStreamStats.type
    • : A string with the value "remote-outbound-rtp", indicating the type of statistics that the object contains.

Usage notes

The RTCRemoteOutboundRtpStreamStats object's RTCRemoteOutboundRtpStreamStats.remoteTimestamp property provides statistics based on the received data's NTP timestamp taken from an RTCP Sender Report (SR) block. Be aware that the remote clock may not be synchronized with the local clock (either in current time or speed at which time elapses).

Specifications

Browser compatibility

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。