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.trackRead only
Returns the MediaStreamTrack associated with the current RTCRtpReceiver instance.
RTCRtpReceiver.transportRead only
Returns the RTCDtlsTransport instance over which the media for the receiver's track is received.
RTCRtpReceiver.rtcpTransportRead 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 identifier received by the current RTCRtpReceiver in the last ten seconds.
RTCRtpReceiver.getSynchronizationSources()
Returns an RTCRtpSynchronizationSource instance for each unique SSRC 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

Browser Compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 59 ? ? No support ?
getContributingSources() method 59 ? ? No support ?
track property 59 ? ? No support ?
Feature Android Webview Chrome for Android Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile
Basic support 59 59 ? ? ? No support ?
getContributingSources() method 59 59 ? ? ? No support ?
track property 59 59 ? ? ? No support ?

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