Re: [webrtc-stats] What is fractionLost for a local incoming media stream?

Hm. fractionLost is only defined in the RTCReceivedRTPStreamStats dictionary, which is split further into RTCRemoteInbound and RTCInbound.
The number (calculated according to RFC 3550 section 6.4.1) doesn't make sense for stats, since it contains information about only the last reporting interval - and we have no representation of reporting intervals, and specific advice against doing that form of stats.

This is the only stat we have where 3550 gives it as "since the previous SR or RR packet was sent".

Proposal: Remove the stat. It can be calculated, if needed, as (newStats.RTCRemoteInbound.packetsLost - oldStats.RTCRemoteInbound.packetsLost) / (newStats.RTCRemoteInbound.packetsReceived - oldStats.RTCRemoteInbound.packetsReceived) (warning: pseudocode!)



-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/255#issuecomment-339296597 using your GitHub account

Received on Wednesday, 25 October 2017 11:15:39 UTC