RTCRtpReceiver
The RTCRtpReceiver interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.
Properties
RTCRtpReceiver.trackRead only-
Returns the
MediaStreamTrackassociated with the currentRTCRtpReceiverinstance. RTCRtpReceiver.transportRead only-
Returns the
RTCDtlsTransportinstance 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
transportproperty instead.
Methods
RTCRtpReceiver.getContributingSources()-
Returns an array of
RTCRtpContributingSourceinstances for each unique CSRC (contributing source) identifier received by the currentRTCRtpReceiverin the last ten seconds. RTCRtpReceiver.getParameters()-
Returns an
RTCRtpParametersobject which contains information about how the RTC data is to be decoded. RTCRtpReceiver.getStats()-
Returns a
Promisewhose fulfillment handler receives aRTCStatsReportwhich contains statistics about the incoming streams and their dependencies. RTCRtpReceiver.getSynchronizationSources()-
Returns an array including one
RTCRtpSynchronizationSourceinstance for each unique SSRC (synchronization source) identifier received by the currentRTCRtpReceiverin 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 |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers # rtcrtpreceiver-interface |
Browser compatibility
BCD tables only load in the browser