The RTCRtpReceiver
interface of the the WebRTC API manages the reception and decoding of data for a MediaStreamTrack
on an RTCPeerConnection
.
Documentation RTCRtpReceiver by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
read onlytrack:MediaStreamTrack
Returns the MediaStreamTrack
associated with the current RTCRtpReceiver
instance.
Methods
getContributingSources():Array<RtpContributingSource>
Returns an array of RTCRtpContributingSource
instances for each unique CSRC (contributing source) identifier received by the current RTCRtpReceiver
in the last ten seconds.
getStats():Promise<StatsReport>
Returns a Promise
whose fulfillment handler receives a RTCStatsReport
which contains statistics about the incoming streams and their dependencies.
getSynchronizationSources():Array<RtpSynchronizationSource>
Returns an array including one RTCRtpSynchronizationSource
instance for each unique SSRC (synchronization source) identifier received by the current RTCRtpReceiver
in the last ten seconds.