Re: [webrtc-rtptransport] Add batch interfaces for reading RtpSents and RtpAcks (#42)

Problem: without the clear signal of attaching event handlers, how does the browser know the app will eventually call getSentNotifications() etc so that it should store RtpSent and RtpAcks objects?
Event the RtpTransport object might not be created before JS makes the first read() call expecting to hear about what's been going on up to that point:
```
const pcWithCustomBWE = new RTCPeerConnection();
// negotiate, add tracks etc.
setTimeout(() => {
  // What's been sent?
  processSends(pcWithCustomBWE.rtpTransport.readSentNotifications(100));
}, 1000);
```

We might need a field in `RTCConfiguration` to start this tracking...

-- 
GitHub Notification of comment by tonyherre
Please view or discuss this issue at https://github.com/w3c/webrtc-rtptransport/pull/42#issuecomment-2149621261 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 5 June 2024 11:41:32 UTC