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

RTCRtpReceiver

· 52CE 我爱测

The **`RTCRtpReceiver`** interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.

WebRTC

The RTCRtpReceiver interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.

Instance properties

  • RTCRtpReceiver.jitterBufferTarget
    • : A DOMHighResTimeStamp that indicates an application's preferred hold time for media in the jitter buffer, allowing it influence the tradeoff between playout delay and the risk of running out of audio or video frames due to network jitter.
  • RTCRtpReceiver.track
    • : Returns the MediaStreamTrack associated with the current RTCRtpReceiver instance.
  • RTCRtpReceiver.transport
    • : Returns the RTCDtlsTransport instance over which the media for the receiver's track is received.
  • RTCRtpReceiver.transform
    • : An RTCRtpScriptTransform is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline, allowing stream transforms to be applied to incoming encoded video and audio frames.

Obsolete properties

  • rtcpTransport
    • : This property has been removed; the RTP and RTCP transports have been combined into a single transport. Use the RTCRtpReceiver.transport property instead.

Static methods

  • RTCRtpReceiver.getCapabilities_static
    • : Returns the most optimistic view of the capabilities of the system for receiving media of the given kind.

Instance methods

  • RTCRtpReceiver.getContributingSources()
    • : Returns an array that contains an object for each unique CSRC (contributing source) identifier received by the current RTCRtpReceiver in the last ten seconds.
  • RTCRtpReceiver.getParameters()
    • : Returns an object that contains information about how the RTC data is to be decoded.
  • RTCRtpReceiver.getStats()
    • : Returns a Promise whose fulfillment handler receives a RTCStatsReport which contains statistics about the incoming streams and their dependencies.
  • RTCRtpReceiver.getSynchronizationSources()
    • : Returns an array that contains an object for each unique SSRC (synchronization source) identifier received by the current RTCRtpReceiver in the last ten seconds.

Specifications

Browser compatibility

See also

  • WebRTC
  • RTCStatsReport
  • RTCRtpSender
  • RTCPeerConnection.getStats()

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

资料来源与适用范围

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

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

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