W3cubDocs

/DOM

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.rtcpTransport Read only
Returns the RTCDtlsTransport instance over which RTCP is sent and received.
RTCRtpReceiver.transport Read only
Returns the RTCDtlsTransport instance over which the media for the receiver's track is received.

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 compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 59 ? Yes ? No ?
track 59 12 ? ? No ?
transport 59 12 Yes ? No ?
rtcpTransport 59 12 Yes ? No ?
getCapabilities 59 12 Yes ? No ?
getParameters 59 ? Yes ? No ?
getContributingSources 59 12 59 ? No ?
getSynchronizationSources No ? 59 ? No ?
getStats 58 ? 55 No 45 ?
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 59 59 ? Yes No ? 7.0
track 59 59 ? ? No ? 7.0
transport 59 59 ? Yes No ? 7.0
rtcpTransport 59 59 ? Yes No ? 7.0
getCapabilities 59 59 ? Yes No ? 7.0
getParameters 59 59 ? Yes No ? 7.0
getContributingSources 59 59 ? 59
Disabled
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.
No ? 7.0
getSynchronizationSources No No ? 59
Disabled
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.
No ? No
getStats 55 58 Yes 55 45 ? 7.0

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver