Interface RTCRtpReceiver
jitterBufferTarget: number | null;
track: MediaStreamTrack;
transform: RTCRtpScriptTransform | null;
transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
getParameters(): RTCRtpReceiveParameters;
getStats(): Promise<RTCStatsReport>;
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
Index
Properties
jitterBufferTarget
The jitterBufferTarget property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
Readonlytrack
The track read-only property of the associated with the current RTCRtpReceiver instance.
transform
The transform property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline.
Readonlytransport
The read-only transport property of an used to interact with the underlying transport over which the receiver is exchanging Real-time Transport Control Protocol (RTCP) packets.
Methods
getContributingSources
The
getContributingSources()method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one CSRC (contributing source) identifier received by the currentRTCRtpReceiverin the last ten seconds.Returns RTCRtpContributingSource[]
getParameters
The
getParameters()method of the RTCRtpReceiver interface returns an object describing the current configuration for how the receiver's RTCRtpReceiver.track is decoded.Returns RTCRtpReceiveParameters
getStats
The RTCRtpReceiver method
getStats()asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection, returning a Promise whose fulfillment handler will be called once the results are available.Returns Promise<RTCStatsReport>
getSynchronizationSources
The
getSynchronizationSources()method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the currentRTCRtpReceiverin the last ten seconds.Returns RTCRtpSynchronizationSource[]
The
RTCRtpReceiverinterface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.MDN Reference