RTCRtpReceiver

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

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.

Obsolete properties

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

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 RTCRtpParameters object which 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.

Static methods

RTCRtpReceiver.getCapabilities()
Returns the most optimistic view of the capabilities of the system for receiving media of the given kind.

Specifications

Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCRtpReceiver' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
RTCRtpReceiverChrome Full support 59Edge Full support ≤18Firefox Full support YesIE No support NoOpera Full support 46Safari Full support YesWebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS Full support YesSamsung Internet Android Full support 7.0
getCapabilitiesChrome Full support 59Edge Full support 12Firefox Full support YesIE No support NoOpera Full support 46Safari ? WebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android Full support 7.0
getContributingSourcesChrome Full support 59Edge Full support 12Firefox Full support 59IE No support NoOpera Full support 46Safari ? WebView Android Full support 59Chrome Android Full support 59Firefox Android Full support 59
Disabled
Full support 59
Disabled
Disabled From version 59: this feature is behind the media.peerconnection.rtpsourcesapi.enable preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 43Safari iOS ? Samsung Internet Android Full support 7.0
getParametersChrome Full support 59Edge Full support ≤79Firefox Full support YesIE No support NoOpera Full support 46Safari Full support YesWebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS Full support YesSamsung Internet Android Full support 7.0
getStatsChrome Full support 67Edge Full support ≤18Firefox Full support 55IE No support NoOpera Full support 54Safari ? WebView Android Full support 67Chrome Android Full support 67Firefox Android Full support 55Opera Android Full support 48Safari iOS ? Samsung Internet Android Full support 7.0
getSynchronizationSourcesChrome Full support 73Edge Full support ≤79Firefox Full support 59IE No support NoOpera Full support 60Safari ? WebView Android Full support 73Chrome Android Full support 73Firefox Android Full support 59
Disabled
Full support 59
Disabled
Disabled From version 59: this feature is behind the media.peerconnection.rtpsourcesapi.enable preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android Full support 52Safari iOS ? Samsung Internet Android Full support 11.0
rtcpTransportChrome Full support 59Edge Full support 12Firefox Full support YesIE No support NoOpera Full support 46Safari ? WebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android Full support 7.0
trackChrome Full support 59Edge Full support 12Firefox Full support YesIE No support NoOpera Full support 46Safari Full support YesWebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS Full support YesSamsung Internet Android Full support 7.0
transportChrome Full support 59Edge Full support 12Firefox Full support YesIE No support NoOpera Full support 46Safari ? WebView Android Full support 59Chrome Android Full support 59Firefox Android Full support YesOpera Android Full support 43Safari iOS ? Samsung Internet Android Full support 7.0

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.

See also