RTCRTPReceiver
The corresponding JS API docs is here RTCRTPReceiver.
interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack
on an RTCPeerConnection.
#
MethodsgetStats
:TheRTCRtpReceiver
methodgetStats()
asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection.
var receiver = pc.getReceivers().firstWhere((s) => s.track.kind == 'video');receiver.getStats().then((stats) => { print('statsId is+ ${stats.id}');});
#
EventsonFirstPacketReceived
:The callback function of the first data packet received by RTCRTPreciewer.
var receiver = pc.getReceivers().firstWhere((s) => s.track.kind == 'video');receiver.onFirstPacketReceived = (RTCRtpReceiver rtpReceiver, RTCRtpMediaType mediaType) { print('first packet received');};
#
Propertiesparameters
:TheRTCRtpReceiver
property RTCRTPParameters is an object describing the current configuration for the encoding and transmission of media on the track.track
:The track property of the RTCRtpReceiver interface returns the MediaStreamTrack associated with the current RTCRtpReceiver instance.receiverId
:The receiverId property of the RTCRtpReceiver interface returns a unique identifier for the RTCRtpReceiver.