RTCRtpReceiver

The RTCRtpReceiver interface of the 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.
RTCRtpReceiver.rtcpTransport Read only
Returns the RTCDtlsTransport instance over which RTCP is sent and received.

Methods

RTCRtpReceiver.getCapabilities()
Returns the most optimistic view of the capabilities of the system for receiving media of the given kind.
RTCRtpReceiver.getParameters() 
Returns an RTCRtpParameters object which contains information about how the RTC data is to be decoded.
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.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.
RTCRtpReceiver.getStats()
Returns a Promise whose fulfillment handler receives a RTCStatsReport which contains statistics about the incoming streams and their dependencies.

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

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support59 ? Yes ? No ?
track5912 ? ? No ?
transport5912 Yes ? No ?
rtcpTransport5912 Yes ? No ?
getCapabilities5912 Yes ? No ?
getParameters59 ? Yes ? No ?
getContributingSources591259 ? No ?
getSynchronizationSources No ?59 ? No ?
getStats58 ?55 No45 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5959 ? Yes No ?7.0
track5959 ? ? No ?7.0
transport5959 ? Yes No ?7.0
rtcpTransport5959 ? Yes No ?7.0
getCapabilities5959 ? Yes No ?7.0
getParameters5959 ? Yes No ?7.0
getContributingSources5959 ?591 No ?7.0
getSynchronizationSources No No ?591 No ? No
getStats5558 Yes5545 ?7.0

1. 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.

See also

Document Tags and Contributors

Contributors to this page: fscholz, Sheppy, jpmedley
Last updated by: fscholz,