RTCRtpReceiver

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的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 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

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 ? ? ? ? ?

See also

文档标签和贡献者