我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
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
MediaStreamTrackassociated with the currentRTCRtpReceiverinstance. RTCRtpReceiver.transportRead only- Returns the
RTCDtlsTransportinstance over which the media for the receiver's track is received. RTCRtpReceiver.rtcpTransportRead only- Returns the
RTCDtlsTransportinstance 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
RTCRtpContributingSourceinstances for each unique CSRC identifier received by the currentRTCRtpReceiverin the last ten seconds. RTCRtpReceiver.getSynchronizationSources()- Returns an
RTCRtpSynchronizationSourceinstance for each unique SSRC identifier received by the currentRTCRtpReceiverin the last ten seconds. RTCRtpReceiver.getStats()- Returns a
Promisewhose fulfillment handler receives aRTCStatsReportwhich 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. |
Working Draft | Initial definition. |
Browser Compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 59 | ? | ? | ? | ? |
getContributingSources() method |
59 | ? | ? | ? | ? |
track property |
59 | ? | ? | ? | ? |
| Feature | Android Webview | Chrome for Android | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| Basic support | 59 | 59 | ? | ? | ? | ? | ? |
getContributingSources() method |
59 | 59 | ? | ? | ? | ? | ? |
track property |
59 | 59 | ? | ? | ? | ? | ? |