3

WebRTC inbound RTP stream (inbound-rtp) does not return Round Trip Time (RTT), but it is required to to calculate Mean Opinion Score (MOS). Any suggestions?

Is is safe to assume asymmetric latency and take the RTT for inbound-rtp same as RTT of corresponding outbound-rtp?

Sample inbound RTP stream

Girish MC
  • 365
  • 1
  • 10

1 Answers1

1

inbound-rtp doesn't, but candidate-pair from same report does

    pc.getReceivers()[1].getStats().then(res => {
      res.forEach(report=> {
        if (report.type === 'candidate-pair') {
          rtp = report.currentRoundTripTime;
        }
    });
});    
Bill Johan
  • 83
  • 1
  • 7
  • This currentRoundTripTime in candidate-pair is related to ICE, I think he needs the RTT for the inbound-rtp. Try to look into the remote-outbound-rtp. – Mario Uzae Dec 24 '21 at 18:52