RTCRtpReceiver
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
* Some parts of this feature may have varying levels of support.
TheRTCRtpReceiver interface of theWebRTC API manages the reception and decoding of data for aMediaStreamTrack on anRTCPeerConnection.
In this article
Instance properties
RTCRtpReceiver.jitterBufferTargetA
DOMHighResTimeStampthat 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.trackRead onlyReturns the
MediaStreamTrackassociated with the currentRTCRtpReceiverinstance.RTCRtpReceiver.transportRead onlyReturns the
RTCDtlsTransportinstance over which the media for the receiver's track is received.RTCRtpReceiver.transformAn
RTCRtpScriptTransformis 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
rtcpTransportDeprecatedThis property has been removed; the RTP and RTCP transports have been combined into a single transport. Use the
transportproperty instead.
Static methods
RTCRtpReceiver.getCapabilities()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
RTCRtpReceiverin 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
Promisewhose fulfillment handler receives aRTCStatsReportwhich 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
RTCRtpReceiverin the last ten seconds.
Specifications
| Specification |
|---|
| WebRTC: Real-Time Communication in Browsers> # rtcrtpreceiver-interface> |