W3cubDocs

/Web APIs

RTCRtpReceiver

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

Instance properties

RTCRtpReceiver.track Read only

Returns the MediaStreamTrack associated with the current RTCRtpReceiver instance.

RTCRtpReceiver.transport Read only

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 Deprecated

This property has been removed; the RTP and RTCP transports have been combined into a single transport. Use the transport property 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 of RTCRtpContributingSource instances 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 including one RTCRtpSynchronizationSource instance for each unique SSRC (synchronization source) identifier received by the current RTCRtpReceiver in the last ten seconds.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
RTCRtpReceiver 59 12 34 No 46 11 59 59 34 43 11 7.0
createEncodedStreams 86 86 No No 72 No 86 86 No 61 No 14.0
getCapabilities_static 59 12 113 No 46 12.1 59 59 113 43 12.2 7.0
getContributingSources 59 12 59 No 46 12.1 59 59 59 43 12.2 7.0
getParameters 59 ≤79 No No 46 11 59 59 No 43 11 7.0
getStats 67 13 55 No 54 12.1 67 67 55 48 12.2 7.0
getSynchronizationSources 73 79 59 No 60 12.1 73 73 59 52 12.2 11.0
rtcpTransport 59 12 No No 46 No 59 59 No 43 No 7.0
track 59 12 34 No 46 11 59 59 34 43 11 7.0
transform No No 117 No No 15.4 No No 117 No 15.4 No
transport 59 12 82 No 46 15.4 59 59 82 43 15.4 7.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver